summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-09-30 16:17:21 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-09-30 16:17:21 +0000
commit1033e8ac73317e2aada27b5346afecca4cbaf49e (patch)
tree2b9285bbdbb2ba1ac6155c47e94dedf91428f05e /lib/libc
parenta4127f0e5c2746cfc64abf21fed515a5082c8755 (diff)
Make it obvious that open(2) returns ELOOP if O_NOFOLLOW was specified
and the target is a symlink.
Diffstat (limited to 'lib/libc')
-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.