diff options
author | trhodes <trhodes@FreeBSD.org> | 2004-12-29 20:00:29 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2004-12-29 20:00:29 +0000 |
commit | 2aa46459eef5d1d57876c622fe8b45f2feee2d62 (patch) | |
tree | a422d412cbeb338470d505627d5f1e6d486aa042 /lib/libc | |
parent | 58e937efb00b12c0787f20638a199cb762e4f360 (diff) | |
download | FreeBSD-src-2aa46459eef5d1d57876c622fe8b45f2feee2d62.zip FreeBSD-src-2aa46459eef5d1d57876c622fe8b45f2feee2d62.tar.gz |
Catch up with stat.h a bit:
o Sticky bit is actually defined as S_ISTXT not S_ISVTX.
o Sticky bit is wrapped in if __BSD_VISIBLE not _POSIX_SOURCE.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/chmod.2 | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/libc/sys/chmod.2 b/lib/libc/sys/chmod.2 index 7da7092..fc6a932 100644 --- a/lib/libc/sys/chmod.2 +++ b/lib/libc/sys/chmod.2 @@ -32,7 +32,7 @@ .\" @(#)chmod.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd December 29, 2004 .Dt CHMOD 2 .Os .Sh NAME @@ -101,22 +101,21 @@ 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 +#ifndef __BSD_VISIBLE +#define S_ISTXT 0001000 /* sticky bit */ #endif .Ed .Pp The .Fx VM system totally ignores the sticky bit -.Pq Dv ISVTX +.Pq Dv ISTXT for executables. On UFS-based file systems (FFS, LFS) the sticky bit may only be set upon directories. .Pp If mode -.Dv ISVTX +.Dv ISTXT (the `sticky bit') is set on a directory, an unprivileged user may not delete or rename files of other users in that directory. |