From owner-freebsd-audit Thu Jun 28 2:17: 7 2001 Delivered-To: freebsd-audit@freebsd.org Received: from mail.chem.msu.ru (mail.chem.msu.ru [195.208.208.19]) by hub.freebsd.org (Postfix) with ESMTP id BF35E37B403 for ; Thu, 28 Jun 2001 02:17:03 -0700 (PDT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su ([158.250.32.97]) by mail.chem.msu.ru with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NHPRV2GL; Thu, 28 Jun 2001 13:12:15 +0400 Received: (from yar@localhost) by comp.chem.msu.su (8.11.1/8.11.1) id f5S9Gr747727 for audit@freebsd.org; Thu, 28 Jun 2001 13:16:53 +0400 (MSD) (envelope-from yar) Date: Thu, 28 Jun 2001 13:16:53 +0400 From: Yar Tikhiy To: audit@freebsd.org Subject: mkdir(1) on "-p" Message-ID: <20010628131652.A46436@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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