Re: open(2) says O_DIRECTORY is Linux-specific

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/08/2014 10:14 PM, Matthew Dempsky wrote:
> http://man7.org/linux/man-pages/man2/open.2.html
> 
>        O_DIRECTORY
>               If pathname is not a directory, cause the open to fail.  This
>               flag is Linux-specific, and was added in kernel version
>               2.1.126, to avoid denial-of-service problems if opendir(3) is
>               called on a FIFO or tape device.
> 
> The "This flag is Linux-specific" bit is no longer true, since it was
> standardized by POSIX.1-2008 (as mentioned in the "CONFORMING TO"
> section later), and FreeBSD, NetBSD, and OpenBSD all implement it (at
> least according to their man pages).  Perhaps saying "This flag was
> Linux-specific until standardized by POSIX.1-2008, and was added in
> ..." would be more accurate?

Hi Matthew,

Thanks for the report. That text is indeed crufty, but all that's needed
is to remove the piece saying that the flag is Linux-speciifc, since
elsewhere in the page it is explained that it is in POSIX.1-2008.
I've simply removed the words "is Linux-specific, and".

Cheers,

Michael



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux