DragonFly BSD
DragonFly bugs List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue1701] mkdir / returns EPERM instead of EEXIST (related to pkg_add)


From: "Alex Hornung \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Apr 2010 06:50:02 +0000

Alex Hornung <ahornung@gmail.com> added the comment:

Chris,
FWIW, from the opengroup rmdir page:
"[EPERM] or [EACCES]
The S_ISVTX flag is set on the parent directory of the directory to be removed 
and the caller is not the owner of the directory to be removed, nor is the 
caller the owner of the parent directory, nor does the caller have the 
appropriate privileges. "

I don't see how this applies to '/', since it doesn't have S_ISVTX set. Having 
to choose between two descriptions that don't quite apply, I'd at least take the 
one that is not completely special-cased on the S_ISVTX flag.

Cheers,
Alex

_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1701>
_____________________________________________________




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]