On Sun, 11 Jan 2009, Tim Kientzle wrote:
I think this one is a bug. It appears that extattr_set_fd() obeys the
permissions on the file, not the permissions of the descriptor. In
particular, I see this on FreeBSD 6.3:
Hmm. Not clear. EAs live in a slightly hazy world between data and
Robert Watson wrote:
On Sun, 11 Jan 2009, Tim Kientzle wrote:
I think this one is a bug. It appears that extattr_set_fd() obeys the
permissions on the file, not the permissions of the descriptor.
Hmm. Not clear. EAs live in a slightly hazy world between data and
meta-data. Normally you
2009/1/11 Tim Kientzle kient...@freebsd.org:
pluknet wrote:
2009/1/11 Tim Kientzle kient...@freebsd.org:
FreeBSD 6.3:
fd = open(test, O_WRONLY | O_CREAT | O_EXCL, 0777);
n = extattr_set_fd(fd, EXTATTR_NAMESPACE_USER, testattr, 1234, 4);
After this, fd=3, n is non-zero, errno = 9 (EBADF)
pluknet wrote:
It's strange..
FreeBSD jaw.ripn.net 6.3-RELEASE-p5.
works for me (tm), extattr_set_fd() returns 4 as expected.
Thank you! *That* was my mistake; I thought
extattr_set_fd() returned 0 on success, non-zero
on error. I re-read the man page and now
everything makes sense.
Thank
I think this one is a bug. It appears that extattr_set_fd()
obeys the permissions on the file, not the permissions
of the descriptor. In particular, I see this on
FreeBSD 6.3:
[...@dark /tmp]$ ./extattr_test
fd=3
extattr_set_fd() = -1
errno = 13 (Permission denied)
[...@dark /tmp]$ cat
FreeBSD 6.3:
fd = open(test, O_WRONLY | O_CREAT | O_EXCL, 0777);
n = extattr_set_fd(fd, EXTATTR_NAMESPACE_USER, testattr, 1234, 4);
After this, fd=3, n is non-zero, errno = 9 (EBADF)
Huh? I would have expected EOPNOTSUPP if
extended attributes weren't supported on this
filesystem. The file
2009/1/11 Tim Kientzle kient...@freebsd.org:
FreeBSD 6.3:
fd = open(test, O_WRONLY | O_CREAT | O_EXCL, 0777);
n = extattr_set_fd(fd, EXTATTR_NAMESPACE_USER, testattr, 1234, 4);
After this, fd=3, n is non-zero, errno = 9 (EBADF)
Huh? I would have expected EOPNOTSUPP if
extended attributes
pluknet wrote:
2009/1/11 Tim Kientzle kient...@freebsd.org:
FreeBSD 6.3:
fd = open(test, O_WRONLY | O_CREAT | O_EXCL, 0777);
n = extattr_set_fd(fd, EXTATTR_NAMESPACE_USER, testattr, 1234, 4);
After this, fd=3, n is non-zero, errno = 9 (EBADF)
Huh? I would have expected EOPNOTSUPP if
8 matches
Mail list logo