[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug#488549: Acknowledgement (coreutils: ls -l still prints
From: |
John David Anglin |
Subject: |
Re: Bug#488549: Acknowledgement (coreutils: ls -l still prints |
Date: |
Mon, 4 Aug 2008 11:08:33 -0400 (EDT) |
> 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 address@hidden
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)