nspawn-patch-uid: try fchmodat2() to restore mode of symlink
authorArseny Maslennikov <arseny@altlinux.org>
Sat, 21 Oct 2023 08:00:00 +0000 (11:00 +0300)
committerMike Yuan <me@yhndnzj.com>
Wed, 1 Nov 2023 16:29:09 +0000 (00:29 +0800)
commit30462563b19b92d8c6ed196d30d3cf7de90e8131
treeadcc74f000d7720bb93dfbb9d8af51caa9c6e077
parentadecfb3bc0be0def49433277fcad5333893756cc
nspawn-patch-uid: try fchmodat2() to restore mode of symlink

Prior to this commit, if the target had been a symlink, we did nothing
with it. Let's try with fchmodat2() and skip gracefully if not supported.

Co-authored-by: Mike Yuan <me@yhndnzj.com>
src/nspawn/nspawn-patch-uid.c