Files
coreutils/src
Pádraig Brady a80621e6aa chmod: fix silent skipping when /proc is unavailable
You can get ENOTSUP due to the system not supporting chmod(symlink),
but you can also get ENOTSUP on any file type if the system needs
/proc to emulate AT_SYMLINK_NOFOLLOW and /proc is not available.

Before this fix we had the problematic "Silent skip" in these cases:

Build glibc    Runtime Linux    With /proc           Without /proc
=============  ============  ===================  ====================
≤ 2.31         Any           gnulib emulation     Racy fallback
2.32–2.38      Any           glibc emulation      Silent skip
≥ 2.39         < 6.6         glibc emulation      Silent skip
≥ 2.39         ≥ 6.6         Native fchmodat2     Native fchmodat2

After this change (and the preceding gnulib change), we have:

Build glibc    Runtime Linux    With /proc           Without /proc
=============  ============  ===================  ====================
≤ 2.38         Any           gnulib emulation     Racy fallback
≥ 2.39         < 6.6         glibc emulation      Diagnose ENOTSUP
≥ 2.39         ≥ 6.6         Native fchmodat2     Native fchmodat2

The above tables assume /proc is available at ./configure time.
Other cases like musl < 1.2.4 are not considered,
but there should at least be no silent ignoring of issues
once reported by the underlying libc.

* src/chmod.c (process_file): Check we're operating on a symlink
if we get ENOTSUP, and only ignore the error in that case.
* tests/chmod/symlink-enotsup.sh: Add a new test.
* tests/local.mk: Reference the new test.
* NEWS: Mention the bug fix.

Discovered by Anthropic's OSS Scanner, as bug ANT-2026-PSCKLNL1.
2026-11-14 20:26:42 +00:00
..
2026-01-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-04-22 19:12:44 -07:00
2026-05-10 23:42:26 -07:00
2026-01-01 10:56:16 -08:00
2026-11-13 18:27:05 -08:00
2026-01-01 10:56:16 -08:00
2026-08-01 12:38:28 +01:00
2026-10-23 14:08:24 +01:00
2026-10-07 12:33:44 +01:00
2026-01-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
2026-02-27 16:18:32 -08:00
2026-01-01 10:56:16 -08:00
2026-01-18 15:55:38 +00:00
2026-02-19 20:36:47 -08:00
2025-05-12 01:28:48 -07:00
2026-06-07 16:43:50 -07:00
2026-11-10 20:58:48 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-04-16 22:05:13 +01:00
2026-01-01 10:56:16 -08:00
2026-02-27 16:18:32 -08:00
2026-02-27 16:18:32 -08:00
2026-01-18 15:55:38 +00:00
2026-01-18 15:55:38 +00:00
2026-01-01 10:56:16 -08:00
2026-07-26 12:44:01 -07:00
2026-04-08 22:34:13 -07:00
2026-02-19 20:35:19 -08:00
2026-10-23 14:08:24 +01:00
2026-07-20 19:46:41 +01:00
2026-01-01 10:56:16 -08:00
2026-01-01 10:56:16 -08:00
2026-10-07 23:26:45 -07:00