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

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


From: "Stathis Kamperis \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 Mar 2010 23:15:24 +0000

Stathis Kamperis <ekamperi@gmail.com> added the comment:

Hey all.

First, EPERM shouldn't be returned at all; instead EACCES should.

Second, POSIX says that the order of error detection is undefined. So, we may 
choose to check first the permissions and then if directory exists, or the other 
way around. Both are valid.

My 2 cents.

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




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