summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/rename.2
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-12-09 19:19:46 +0000
committerpjd <pjd@FreeBSD.org>2006-12-09 19:19:46 +0000
commitbb93464d9e49aaafe5cd03595b13d5b8c4dd204b (patch)
tree534bd75cd74c9f1df118b2887395e0a54bc12565 /lib/libc/sys/rename.2
parent35ec935f3b724a4dc9e014f65ebe8baf291514d2 (diff)
downloadFreeBSD-src-bb93464d9e49aaafe5cd03595b13d5b8c4dd204b.zip
FreeBSD-src-bb93464d9e49aaafe5cd03595b13d5b8c4dd204b.tar.gz
When immutable, undeletable or append-only flag is set, rename(2)
return EPERM.
Diffstat (limited to 'lib/libc/sys/rename.2')
-rw-r--r--lib/libc/sys/rename.29
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/sys/rename.2 b/lib/libc/sys/rename.2
index 0080f40..bbb7c25 100644
--- a/lib/libc/sys/rename.2
+++ b/lib/libc/sys/rename.2
@@ -32,7 +32,7 @@
.\" @(#)rename.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd December 9, 2006
.Dt RENAME 2
.Os
.Sh NAME
@@ -128,6 +128,12 @@ A component of either path prefix denies search permission.
The requested link requires writing in a directory with a mode
that denies write permission.
.It Bq Er EPERM
+The file pointed at by the
+.Fa from
+argument has its immutable, undeletable or append-only flag set, see the
+.Xr chflags 2
+manual page for more information.
+.It Bq Er EPERM
The directory containing
.Fa from
is marked sticky,
@@ -206,6 +212,7 @@ argument
is a directory and is not empty.
.El
.Sh SEE ALSO
+.Xr chflags 2 ,
.Xr open 2 ,
.Xr symlink 7
.Sh STANDARDS
OpenPOWER on IntegriCloud