summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-12-09 22:56:40 +0000
committerpjd <pjd@FreeBSD.org>2006-12-09 22:56:40 +0000
commit8a2099c5a1c9f2a48ef1752d8f7fc99306ab7b10 (patch)
treeb25731545f8bbdbbf133357d3f90a6e4f5e32988 /lib/libc
parent5785bcc5bce627b1adf638e72105137bf543f7c4 (diff)
downloadFreeBSD-src-8a2099c5a1c9f2a48ef1752d8f7fc99306ab7b10.zip
FreeBSD-src-8a2099c5a1c9f2a48ef1752d8f7fc99306ab7b10.tar.gz
- If the source file has its immutable or append-only flag set, link(2)
returns EPERM. - If the parent directory of the destination file has its immutable flag set, link(2) returns EPERM.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/link.217
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/libc/sys/link.2 b/lib/libc/sys/link.2
index f39768a..5a98254 100644
--- a/lib/libc/sys/link.2
+++ b/lib/libc/sys/link.2
@@ -32,7 +32,7 @@
.\" @(#)link.2 8.3 (Berkeley) 1/12/94
.\" $FreeBSD$
.\"
-.Dd March 5, 1999
+.Dd December 9, 2006
.Dt LINK 2
.Os
.Sh NAME
@@ -124,9 +124,17 @@ does exist.
.It Bq Er EPERM
The file named by
.Fa name1
-is a directory or is flagged immutable or append-only
-(see
-.Xr chflags 2 ) .
+is a directory.
+.It Bq Er EPERM
+The file named by
+.Fa name1
+has its immutable or append-only flag set, see the
+.Xr chflags 2
+manual page for more information.
+.It Bq Er EPERM
+The parent directory of the file named by
+.Fa name2
+has its immutable flag set.
.It Bq Er EXDEV
The link named by
.Fa name2
@@ -153,6 +161,7 @@ One of the pathnames specified
is outside the process's allocated address space.
.El
.Sh SEE ALSO
+.Xr chflags 2 ,
.Xr readlink 2 ,
.Xr symlink 2 ,
.Xr unlink 2
OpenPOWER on IntegriCloud