Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2001 13:16:53 +0400
From:      Yar Tikhiy <yar@freebsd.org>
To:        audit@freebsd.org
Subject:   mkdir(1) on "-p"
Message-ID:  <20010628131652.A46436@comp.chem.msu.su>

next in thread | raw e-mail | index | archive | help
Hi there,

The FreeBSD mkdir(1) manpage appears not to say a single word on
what happens if the "-p" option is specified to mkdir and a final
directory exists. The fix follows. Please review it for possible
grammar/style slips.

-- 
Yar

Index: mkdir.1
===================================================================
RCS file: /home/ncvs/src/bin/mkdir/mkdir.1,v
retrieving revision 1.13
diff -u -r1.13 mkdir.1
--- mkdir.1	2000/11/20 11:39:38	1.13
+++ mkdir.1	2001/06/27 17:50:13
@@ -73,6 +73,8 @@
 Create intermediate directories as required.
 If this option is not specified, the full path prefix of each
 operand must already exist.
+On the other hand, with this option specified, no error will
+be reported if a directory given as an operand already exists.
 Intermediate directories are created with permission bits of
 .Li rwxrwxrwx (\&0777)
 as modified by the current umask, plus write and search
@@ -81,7 +83,8 @@
 Be verbose when creating directories, listing them as they are created.
 .El
 .Pp
-The user must have write permission in the parent directory.
+The user must have write permission on the parent directory
+if a directory needs to be created.
 .Sh DIAGNOSTICS
 The
 .Nm

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010628131652.A46436>