From a51d79c1d379b3855ceaf21a2078456665285a0d Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Wed, 29 Dec 2004 20:00:29 +0000 Subject: [PATCH] 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. --- lib/libc/sys/chmod.2 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/libc/sys/chmod.2 b/lib/libc/sys/chmod.2 index 7da7092710a6..fc6a932ead22 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.