Re: [PATCH] open(2): document O_PATH

From: Michael Kerrisk (man-pages)
Date: Thu May 03 2012 - 02:49:08 EST


Ted,

On Mon, Apr 30, 2012 at 11:44 PM, Ted Ts'o <tytso@xxxxxxx> wrote:
> It might also be a good idea to document explicitly whether or not
> things like fstat() and the syscalls to manipulate extended attributes
> are expected to work.

Good point. From some testing, it appears that syscalls such as
fstat() and fgetxattr() fail with EBADF on O_PATH fds. I'll add that
to the text.

Thanks,

Michael


--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/