]> git.ipfire.org Git - thirdparty/systemd.git/commit
Revert "nspawn-patch-uid: try fchmodat2() to restore mode of symlink"
authorMike Yuan <me@yhndnzj.com>
Sat, 25 Nov 2023 10:57:53 +0000 (18:57 +0800)
committerMike Yuan <me@yhndnzj.com>
Sat, 25 Nov 2023 11:12:15 +0000 (19:12 +0800)
commit677e644530f4f5ea7b077f546cc4425c563fc172
treeb84cccf391bbcb001bf904293eb9ef064a5a8567
parent6ba7c72910c9ad3cc8a6b1459d83a36ef6dce614
Revert "nspawn-patch-uid: try fchmodat2() to restore mode of symlink"

This reverts commit 30462563b19b92d8c6ed196d30d3cf7de90e8131.

fchmodat2(), while accepting AT_SYMLINK_NOFOLLOW as a valid flag,
always returns EOPNOTSUPP when operating on a symlink. The Linux kernel
simply doesn't support changing the mode of a symlink.

Fixes #30157
src/nspawn/nspawn-patch-uid.c