diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-10-12 10:35:09 +0000 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2005-10-12 10:35:09 +0000 |
commit | 9f8d688afd3d17f06c367c3f4af9e6e1789da555 (patch) | |
tree | d1148c9b9983ce09b49dd7ec391b5733c5be4013 /man2 | |
parent | 4f76dae0698c2bfee628e2cc9bb5b59ec3325f1e (diff) |
Added .\" comment pointing out that O_DIRECTORY | O_CREAT causes
O_DIRECTORY to be ignored
Diffstat (limited to 'man2')
-rw-r--r-- | man2/open.2 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/man2/open.2 b/man2/open.2 index fc74447c..f5d663b5 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -159,8 +159,12 @@ A semantically similar interface for block devices is described in .BR raw (8). .TP .B O_DIRECTORY -If \fIpathname\fR is not a directory, cause the open to fail. This -flag is Linux-specific, and was added in kernel version 2.1.126, to +If \fIpathname\fR is not a directory, cause the open to fail. +.\" But see the following and its replies: +.\" http://marc.theaimsgroup.com/?t=112748702800001&r=1&w=2 +.\" [PATCH] open: O_DIRECTORY and O_CREAT together should fail +.\" O_DIRECTORY | O_CREAT causes O_DIRECTORY to be ignored. +This flag is Linux-specific, and was added in kernel version 2.1.126, to avoid denial-of-service problems if \fBopendir\fR(3) is called on a FIFO or tape device, but should not be used outside of the implementation of \fBopendir\fR. |