diff options
author | pjd <pjd@FreeBSD.org> | 2006-12-09 22:49:28 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2006-12-09 22:49:28 +0000 |
commit | 5785bcc5bce627b1adf638e72105137bf543f7c4 (patch) | |
tree | a11bdd7ce8561016b1c989840bf7f23ac0563dc1 /lib/libc | |
parent | 6f1b6d133cfc7209d3cf7535af07f5a780803894 (diff) | |
download | FreeBSD-src-5785bcc5bce627b1adf638e72105137bf543f7c4.zip FreeBSD-src-5785bcc5bce627b1adf638e72105137bf543f7c4.tar.gz |
If the named file has its immutable or append-only flag set, truncate(2)
and ftruncate(2) return EPERM.
Note, that if the append-only flag is set even increasing size of the file
is not permitted.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/truncate.2 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/sys/truncate.2 b/lib/libc/sys/truncate.2 index 29f04b2..39edc28 100644 --- a/lib/libc/sys/truncate.2 +++ b/lib/libc/sys/truncate.2 @@ -32,7 +32,7 @@ .\" @(#)truncate.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 1, 2006 +.Dd December 9, 2006 .Dt TRUNCATE 2 .Os .Sh NAME @@ -92,6 +92,10 @@ Search permission is denied for a component of the path prefix. The named file is not writable by the user. .It Bq Er ELOOP Too many symbolic links were encountered in translating the pathname. +.It Bq Er EPERM +The named file has its immutable or append-only flag set, see the +.Xr chflags 2 +manual page for more information. .It Bq Er EISDIR The named file is a directory. .It Bq Er EROFS @@ -129,6 +133,7 @@ descriptor is not open for writing. .El .Sh SEE ALSO +.Xr chflags 2 , .Xr open 2 .Sh HISTORY The |