Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2001 14:52:48 -0700
From:      Dima Dorfman <dima@unixfreak.org>
To:        Yar Tikhiy <yar@freebsd.org>
Cc:        audit@freebsd.org
Subject:   Re: mkdir(1) on "-p" 
Message-ID:  <20010628215248.5D8A93E2F@bazooka.unixfreak.org>
In-Reply-To: <20010628131652.A46436@comp.chem.msu.su>; from yar@freebsd.org on "Thu, 28 Jun 2001 13:16:53 %2B0400"

next in thread | previous in thread | raw e-mail | index | archive | help
Yar Tikhiy <yar@freebsd.org> writes:
> 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
                                      ^^^^
Perhaps "to" would be better?

Other than that, looks okay.

					Dima Dorfman
					dima@unixfreak.org

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?20010628215248.5D8A93E2F>