summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2000-09-30 16:17:20 +0000
committermillert <millert@openbsd.org>2000-09-30 16:17:20 +0000
commitac92d23b9c7770f6457bbb66052adc7e63a5e104 (patch)
tree777a0f7b2653b3905de603ca8a71ed55864a4bc3 /lib
parentSome format string problems that were missed during initial audit; deraadt@ and (diff)
downloadwireguard-openbsd-ac92d23b9c7770f6457bbb66052adc7e63a5e104.tar.xz
wireguard-openbsd-ac92d23b9c7770f6457bbb66052adc7e63a5e104.zip
Make it obvious that open(2) returns ELOOP if O_NOFOLLOW was specified
and the target is a symlink.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/open.27
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2
index 5340b71df1c..8cd7e13b20f 100644
--- a/lib/libc/sys/open.2
+++ b/lib/libc/sys/open.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: open.2,v 1.16 2000/09/25 20:24:33 deraadt Exp $
+.\" $OpenBSD: open.2,v 1.17 2000/09/30 16:17:20 millert Exp $
.\" $NetBSD: open.2,v 1.8 1995/02/27 12:35:14 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -184,7 +184,10 @@ the file does not exist,
and the directory in which it is to be created
does not permit writing.
.It Bq Er ELOOP
-Too many symbolic links were encountered in translating the pathname.
+Too many symbolic links were encountered in translating the pathname,
+or the
+.Dv O_NOFOLLOW
+flag was specified and the target is a symbolic link.
.It Bq Er EISDIR
The named file is a directory, and the arguments specify
it is to be opened for writing.