From: Klemens Nanni Subject: Re: chmod.2: document EFTYPE To: "Todd C. Miller" Cc: OpenBSD tech Date: Tue, 20 May 2025 01:42:11 +0000 19.05.2025 20:03, Todd C. Miller пишет: > This version looks a lot better to me. I would get rid of the > .Pp between the two sentences about ISVTX since it is now > effectively one paragraph. Sure, OK without .Pp? Index: lib/libc/sys/chmod.2 =================================================================== RCS file: /cvs/src/lib/libc/sys/chmod.2,v diff -u -p -r1.28 chmod.2 --- lib/libc/sys/chmod.2 10 Sep 2015 17:55:21 -0000 1.28 +++ lib/libc/sys/chmod.2 20 May 2025 01:40:58 -0000 @@ -84,17 +84,12 @@ from the following list: #define S_ISVTX 0001000 /* save swapped text even after use */ .Ed .Pp -If mode +Mode .Dv ISVTX (the .Em sticky bit ) -is set on a file, it is ignored. -.Pp -If mode -.Dv ISVTX -(the -.Em sticky bit ) -is set on a directory, an unprivileged user may not delete or rename +on a file has no effect, although the superuser can still set it. +If it is set on a directory, an unprivileged user may not delete or rename files of other users in that directory. The sticky bit may be set by any user on a directory which the user owns or has appropriate permissions. @@ -188,6 +183,9 @@ The named file resides on a read-only fi 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 unprivileged user attempted to set a file's mode to +.Dv ISVTX . .El .Pp Additionally, the