summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/rename.2
diff options
context:
space:
mode:
authortruckman <truckman@FreeBSD.org>2006-01-21 20:45:45 +0000
committertruckman <truckman@FreeBSD.org>2006-01-21 20:45:45 +0000
commit0c5f09bf3c8b2341fa0659828a74f62d7345379f (patch)
treeba54e28b83fe32fd2d3021741e5e56dcb6252c2b /lib/libc/sys/rename.2
parent96735772f306626ae6884a4e2e3f26941b505aaa (diff)
downloadFreeBSD-src-0c5f09bf3c8b2341fa0659828a74f62d7345379f.zip
FreeBSD-src-0c5f09bf3c8b2341fa0659828a74f62d7345379f.tar.gz
rename(), rmdir(), and undelete() fail with EPERM if the last component
of the path is "..". MFC after: 3 days
Diffstat (limited to 'lib/libc/sys/rename.2')
-rw-r--r--lib/libc/sys/rename.23
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/sys/rename.2 b/lib/libc/sys/rename.2
index 0080f40..6df3046 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
OpenPOWER on IntegriCloud