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

Chris Turner c.turner at 199technologies.org
Wed Apr 21 11:09:03 PDT 2010


Alex Hornung (via DragonFly issue tracker) wrote:
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.

Aha -

I mis-remembered my sys/errno.h - and hence didn't get the posix docs write.

$ grep -i perm /usr/include/sys/errno.h
 * the permission of UNIX System Laboratories, Inc.
 * modification, are permitted provided that the following conditions
 *    without specific prior written permission.
#define EPERM           1               /* Operation not permitted */
#define EACCES          13              /* Permission denied */
got it now. Ok. Will fix - tomorrow.

aarrgghh!

ok.

- Chris






More information about the Bugs mailing list