summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-12-13 11:26:03 +0000
committerpjd <pjd@FreeBSD.org>2006-12-13 11:26:03 +0000
commit22da39b273902a2b8d3d506674a31d753a78a448 (patch)
tree424256ca90212ff5844e725fd193108ebcb258e6
parentb095a4d2bafe39e39b95ead5971f8f31d09ced2b (diff)
downloadFreeBSD-src-22da39b273902a2b8d3d506674a31d753a78a448.zip
FreeBSD-src-22da39b273902a2b8d3d506674a31d753a78a448.tar.gz
Write permission if of course only needed for the parent directory of
the object beeing created. Pointed out by: bde
-rw-r--r--lib/libc/sys/mkfifo.25
-rw-r--r--lib/libc/sys/symlink.27
2 files changed, 4 insertions, 8 deletions
diff --git a/lib/libc/sys/mkfifo.2 b/lib/libc/sys/mkfifo.2
index 22aba73..68b7858 100644
--- a/lib/libc/sys/mkfifo.2
+++ b/lib/libc/sys/mkfifo.2
@@ -79,9 +79,8 @@ or an entire path name exceeded 1023 characters.
.It Bq Er ENOENT
A component of the path prefix does not exist.
.It Bq Er EACCES
-Search permission is denied for a component of the path prefix.
-.It Bq Er EACCES
-Write permission is denied for a component of the path prefix.
+A component of the path prefix denies search permission, or write permission
+is denied on the parent directory of the fifo to be created.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the pathname.
.It Bq Er EROFS
diff --git a/lib/libc/sys/symlink.2 b/lib/libc/sys/symlink.2
index dd17f08..71e1f39 100644
--- a/lib/libc/sys/symlink.2
+++ b/lib/libc/sys/symlink.2
@@ -78,11 +78,8 @@ path prefix does not exist.
.It Bq Er EACCES
A component of the
.Fa name2
-path prefix denies search permission.
-.It Bq Er EACCES
-A component of the
-.Fa name2
-path prefix denies write permission.
+path prefix denies search permission, or write permission is denied on the
+parent directory of the file to be created.
.It Bq Er ELOOP
Too many symbolic links were encountered in translating the
.Fa name2
OpenPOWER on IntegriCloud