diff options
author | truckman <truckman@FreeBSD.org> | 2006-01-21 20:45:45 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2006-01-21 20:45:45 +0000 |
commit | 0c5f09bf3c8b2341fa0659828a74f62d7345379f (patch) | |
tree | ba54e28b83fe32fd2d3021741e5e56dcb6252c2b /lib | |
parent | 96735772f306626ae6884a4e2e3f26941b505aaa (diff) | |
download | FreeBSD-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')
-rw-r--r-- | lib/libc/sys/rename.2 | 3 | ||||
-rw-r--r-- | lib/libc/sys/rmdir.2 | 3 | ||||
-rw-r--r-- | lib/libc/sys/undelete.2 | 3 |
3 files changed, 9 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 diff --git a/lib/libc/sys/rmdir.2 b/lib/libc/sys/rmdir.2 index c2014fc..187b977 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 5faf50a..3f84424 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 |