Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Mention that we don't honor the other mode bits.



details:   https://anonhg.NetBSD.org/src/rev/c029b0c7032d
branches:  trunk
changeset: 848644:c029b0c7032d
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 04 18:36:16 2020 +0000

description:
Mention that we don't honor the other mode bits.

diffstat:

 lib/libc/sys/mkdir.2 |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 4f1bd9cb48f6 -r c029b0c7032d lib/libc/sys/mkdir.2
--- a/lib/libc/sys/mkdir.2      Tue Feb 04 16:28:29 2020 +0000
+++ b/lib/libc/sys/mkdir.2      Tue Feb 04 18:36:16 2020 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mkdir.2,v 1.30 2019/09/01 19:54:04 sevan Exp $
+.\"    $NetBSD: mkdir.2,v 1.31 2020/02/04 18:36:16 christos Exp $
 .\"
 .\" Copyright (c) 1983, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)mkdir.2    8.2 (Berkeley) 12/11/93
 .\"
-.Dd September 1, 2019
+.Dd February 4, 2020
 .Dt MKDIR 2
 .Os
 .Sh NAME
@@ -54,6 +54,16 @@
 and restricted by the
 .Xr umask 2
 of the calling process.
+On
+.Nx 
+all other mode bits 
+.Dv ( S_ISUID ,
+.Dv S_ISGID , 
+.Dv S_ISTXT )
+are ignored.
+This is implementation defined; for example on Linux
+.Dv S_ISTXT
+is honored.
 .Pp
 .Fn mkdirat
 works the same way as



Home | Main Index | Thread Index | Old Index