summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-12-09 23:01:38 +0000
committerpjd <pjd@FreeBSD.org>2006-12-09 23:01:38 +0000
commit827d52e62286c037370df2fdeb1a9a6dd70f5d05 (patch)
tree8e91733029dad18c40cf6f90e8798ebe60d37ab3 /lib
parent8a2099c5a1c9f2a48ef1752d8f7fc99306ab7b10 (diff)
downloadFreeBSD-src-827d52e62286c037370df2fdeb1a9a6dd70f5d05.zip
FreeBSD-src-827d52e62286c037370df2fdeb1a9a6dd70f5d05.tar.gz
If the parent directory of the destination file has its immutable flag set,
symlink(2) returns EPERM.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/symlink.29
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/sys/symlink.2 b/lib/libc/sys/symlink.2
index 19fa7fa..d8c9250 100644
--- a/lib/libc/sys/symlink.2
+++ b/lib/libc/sys/symlink.2
@@ -32,7 +32,7 @@
.\" @(#)symlink.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd December 9, 2006
.Dt SYMLINK 2
.Os
.Sh NAME
@@ -82,6 +82,12 @@ The path name pointed at by the
.Fa name2
argument
already exists.
+.It Bq Er EPERM
+The parent directory of the file named by
+.Fa name2
+has its immutable flag set, see the
+.Xr chflags 2
+manual page for more information.
.It Bq Er EIO
An I/O error occurred while making the directory entry for
.Fa name2 ,
@@ -128,6 +134,7 @@ points outside the process's allocated address space.
.El
.Sh SEE ALSO
.Xr ln 1 ,
+.Xr chflags 2 ,
.Xr link 2 ,
.Xr lstat 2 ,
.Xr readlink 2 ,
OpenPOWER on IntegriCloud