diff options
author | steve <steve@FreeBSD.org> | 1997-08-17 00:19:28 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1997-08-17 00:19:28 +0000 |
commit | fe5ea241ff26e1664df3f31a9e76d7f2dfa8dbff (patch) | |
tree | 162c8f1fa98273e5372c41bc7637942e26653321 /lib/libc/sys/chmod.2 | |
parent | b24c9462eb3c246d96db0a665c835d7f65b010c3 (diff) | |
download | FreeBSD-src-fe5ea241ff26e1664df3f31a9e76d7f2dfa8dbff.zip FreeBSD-src-fe5ea241ff26e1664df3f31a9e76d7f2dfa8dbff.tar.gz |
Reflect reality of sticky bits and UFS-based filesystems.
PR: docs/4198
Submitted by: Ada T. Lim <ada@not-enough.bandwidth.org>
Diffstat (limited to 'lib/libc/sys/chmod.2')
-rw-r--r-- | lib/libc/sys/chmod.2 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/libc/sys/chmod.2 b/lib/libc/sys/chmod.2 index a2daf6f..d573bfd8 100644 --- a/lib/libc/sys/chmod.2 +++ b/lib/libc/sys/chmod.2 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)chmod.2 8.1 (Berkeley) 6/4/93 -.\" $Id: chmod.2,v 1.8 1997/02/22 15:03:43 peter Exp $ +.\" $Id: chmod.2,v 1.9 1997/03/21 20:57:18 mpp Exp $ .\" .Dd June 4, 1993 .Dt CHMOD 2 @@ -90,13 +90,17 @@ defined in #define S_ISUID 0004000 /* set user id on execution */ #define S_ISGID 0002000 /* set group id on execution */ #define S_ISVTX 0001000 /* sticky bit */ +#ifndef _POSIX_SOURCE +#define S_ISTXT 0001000 +#endif .Ed .Pp The .Tn FreeBSD VM system totally ignores the sticky bit .Pf ( Dv ISVTX -) for executables. +) for executables. On UFS-based filesystems (FFS, MFS, LFS) the sticky +bit may only be set upon directories. .Pp If mode .Dv ISVTX @@ -145,6 +149,8 @@ The named file resides on a read-only file system. points outside the process's allocated address space. .It Bq Er EIO An I/O error occurred while reading from or writing to the file system. +.It Bq Er EFTYPE +An attempt was made to set the sticky bit upon an executable. .El .Pp .Fn Fchmod @@ -170,7 +176,8 @@ An I/O error occurred while reading from or writing to the file system. The .Fn chmod function call is expected to conform to -.St -p1003.1-90 . +.St -p1003.1-90 , +except for the return of EFTYPE and the use of S_ISTXT. .Sh HISTORY A .Fn chmod |