> What versions of HPUX are affected?
Although sys/errno.h defines different values for ENOTSUP and
EOPNOTSUPP (same as hppa-linux values), I have not seen this problem
on HP-UX 10 or 11. It looks like getfilecon is selinux specific.
On HP-UX, getacl() returns EOPNOTSUPP if the operation is not
supported on the file system. I would guess it does this consistently.
> > The attached change fixes the problem with ls, but doesn't fix the
> > errno problem.
It would seem that getfilecon() returns the wrong error code, or
the manpage is wrong. I see that getfilecon_raw() can return
EOPNOTSUPP:
if (ret == 0) {
/* Re-map empty attribute values to errors. */
errno = EOPNOTSUPP;
ret = -1;
}
getfilecon_raw() uses getxattr(). The manpage for getxattr()
says it returns ENOTSUP if extended attributes are not supported.
This is a syscall and it will take a bit more digging to see if
it is consistent with the documentation.
Dave
--
J. David Anglin [EMAIL PROTECTED]
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils