cvs commit: src/bin/rmdir rmdir.c
Ruslan Ermilov
ru at FreeBSD.org
Sat Nov 20 00:51:28 GMT 2004
On Sat, Nov 20, 2004 at 12:41:08AM +0000, Ruslan Ermilov wrote:
> ru 2004-11-20 00:41:08 UTC
>
> FreeBSD src repository
>
> Modified files:
> bin/rmdir rmdir.c
> Log:
> Do not emit a spurious warning when "directory" argument
> to "rmdir -p" is absolute, with one or more leading slash.
>
> Revision Changes Path
> 1.19 +3 -1 src/bin/rmdir/rmdir.c
>
Note that POSIX.1-2004 requires that the -p option be
handled like this, for each "dir" argument:
rmdir <dir>
rmdir -p $(dirname <dir>)
So the fact that it won't remove /1/2/../2/3 is at
least standards compliant. ;)
Cheers,
--
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20041120/c090fe10/attachment.bin
More information about the cvs-src
mailing list