]> git.sur5r.net Git - bacula/bacula/commit
The world is cruel, you cannot trust manpages.
authorMarco van Wieringen <mvw@planets.elm.net>
Fri, 16 Sep 2011 08:36:19 +0000 (10:36 +0200)
committerMarco van Wieringen <mvw@planets.elm.net>
Fri, 16 Sep 2011 08:46:01 +0000 (10:46 +0200)
commit1bc07c574b8c2bd2acb868addc041e673217e756
tree4352b4bdca467b073e22b8c413a07519b54e6cf0
parenta1f7c973f0ce9bf433e3fe5f447d75b87a6dbb2b
The world is cruel, you cannot trust manpages.

As it seems ENOTSUP is defined as EOPNOTSUPP on Linux. The manpages says
certain functions return ENOTSUP while they return EOPNOTSUPP because
the other doesn't really exist. So we have to do some more magic,
restored the old acl errno logic which is somewhat cleaner now
that everything except for IRIX seems to not adhere to POSIX and use
EOPNOTSUPP (which is according to POSIX only valid for a socket).
Added same kind of logic to xattr code as on OSX the xattr functions
are supposed to return ENOTSUP and not EOPNOTSUPP which Linux is
returning there. What a mess trying to write portable code when manpages
just cannot be trusted. Hopefully this is the end of it.
bacula/src/filed/acl.c
bacula/src/filed/acl.h
bacula/src/filed/xattr.c
bacula/src/filed/xattr.h