Thread (4 messages) 4 messages, 2 authors, 2025-06-11

[PATCH v1] man/man2/chmod.2: Document AT_SYMLINK_NOFOLLOW support

From: Benjamin Peterson <hidden>
Date: 2025-05-30 16:59:33
Subsystem: the rest · Maintainer: Linus Torvalds

Historically, Linux systems did not support the AT_SYMLINK_NOFOLLOW flag to fchmodat.  glibc added userspace emulation support in version 2.32, and Linux gained native support in 6.5.  See glibc.git 6b89c385d8bd0700b25bac2c2d0bebe68d5cc05d ("io: Implement lchmod using fchmodat [BZ #14578]") and linux.git 09da082b07bbae1c11d9560c8502800039aebcea ("fs: Add fchmodat2()").

Signed-off-by: Benjamin Peterson <redacted>
---
 man/man2/chmod.2 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/man/man2/chmod.2 b/man/man2/chmod.2
index 307589481..76dbfc6b2 100644
--- a/man/man2/chmod.2
+++ b/man/man2/chmod.2
@@ -197,7 +197,6 @@ If
 .I path
 is a symbolic link, do not dereference it:
 instead operate on the link itself.
-This flag is not currently implemented.
 .P
 See
 .BR openat (2)
@@ -329,6 +328,9 @@ POSIX.1-2008.
 POSIX.1-2008.
 Linux 2.6.16,
 glibc 2.4.
+.BR AT_SYMLINK_NOFOLLOW
+glibc 2.32,
+Linux 6.5.
 .SH SEE ALSO
 .BR chmod (1),
 .BR chown (2),
Range-diff against v0:
-:  --------- > 1:  6a1171eb1 man/man2/chmod.2: Document AT_SYMLINK_NOFOLLOW support
-- 
2.48.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help