Files
systemd/src/basic
Luca Boccassi 696b1263dc fs-util: prefer glibc's fchmodat() if possible
Since v2.39 glibc's fchmodat() will call into the kernel's fchmodat2()
if flags are passed:

https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=65341f7bbea824d2ff9d37db15d8be162df42bd3;hp=c52c2c32db15aba8bbe1a0b4d3235f97d9c1a525

On older versions, if the flag is anything other than AT_SYMLINK_NOFOLLOW,
it returns EINVAL, so we can detect it and call the kernel syscall directly
ourselves.

Using the glibc wrappers when possible is prefereable so that programs
like fakeroot can intercept its calls and redirect them.

Follow-up for adecfb3bc0
2025-09-24 08:48:42 +02:00
..
2025-09-19 14:46:55 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-09-19 15:33:15 +09:00
2025-05-25 10:06:07 +02:00
2025-09-17 09:45:47 +02:00
2025-09-19 14:46:55 +02:00
2025-06-02 17:39:43 +02:00
2025-06-02 17:39:43 +02:00
2025-09-19 14:46:55 +02:00
2025-09-19 08:39:32 +02:00
2025-09-19 08:39:32 +02:00
2025-09-19 16:46:07 +02:00
2025-09-19 16:46:07 +02:00
2025-09-19 15:33:17 +09:00
2025-06-23 23:11:44 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-06-02 18:05:45 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-06-17 11:44:50 +02:00
2025-07-27 13:14:05 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-07-26 05:00:02 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00
2025-09-22 14:39:05 +09:00
2025-09-22 14:39:05 +09:00
2025-05-25 10:06:07 +02:00
2025-05-25 10:06:07 +02:00