summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/rename.23
-rw-r--r--lib/libc/sys/rmdir.23
-rw-r--r--lib/libc/sys/undelete.23
3 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/sys/rename.2 b/lib/libc/sys/rename.2
index 0080f409f6dd..6df3046d9250 100644
--- a/lib/libc/sys/rename.2
+++ b/lib/libc/sys/rename.2
@@ -145,6 +145,9 @@ is marked sticky,
and neither the containing directory nor
.Fa to
are owned by the effective user ID.
+.It Bq Er EPERM
+After expanding any symbolic links, the last component of either path is
+.Ql .. .
.It Bq Er ELOOP
Too many symbolic links were encountered in translating either pathname.
.It Bq Er ENOTDIR
diff --git a/lib/libc/sys/rmdir.2 b/lib/libc/sys/rmdir.2
index c2014fc1a998..187b977dd213 100644
--- a/lib/libc/sys/rmdir.2
+++ b/lib/libc/sys/rmdir.2
@@ -85,6 +85,9 @@ to be removed.
The directory containing the directory to be removed is marked sticky,
and neither the containing directory nor the directory to be removed
are owned by the effective user ID.
+.It Bq Er EPERM
+After expanding any symbolic links, the last component of the path is
+.Ql .. .
.It Bq Er EBUSY
The directory to be removed is the mount point
for a mounted file system.
diff --git a/lib/libc/sys/undelete.2 b/lib/libc/sys/undelete.2
index 5faf50aec6de..3f8442415122 100644
--- a/lib/libc/sys/undelete.2
+++ b/lib/libc/sys/undelete.2
@@ -86,6 +86,9 @@ Too many symbolic links were encountered in translating the pathname.
.It Bq Er EPERM
The directory containing the name is marked sticky,
and the containing directory is not owned by the effective user ID.
+.It Bq Er EPERM
+After expanding any symbolic links, the last component of the path is
+.Ql .. .
.It Bq Er EIO
An I/O error occurred while updating the directory entry.
.It Bq Er EROFS