]> git.ipfire.org Git - thirdparty/systemd.git/commit
rm-rf: add new flag REMOVE_CHMOD
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Jul 2020 13:24:54 +0000 (15:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 25 Aug 2020 16:39:45 +0000 (18:39 +0200)
commit2899fb024f066f1cb14989fb470e188de7d6dc88
tree87e60be456ae5d4676e3e4e85e3cc1cac2d7d78c
parent45374f6503672564acf3e7e68513031dc00463d6
rm-rf: add new flag REMOVE_CHMOD

When removing a directory tree as unprivileged user we might encounter
files owned by us but not deletable since the containing directory might
have the "r" bit missing in its access mode. Let's try to deal with
this: optionally if we get EACCES try to set the bit and see if it works
then.
src/basic/rm-rf.c
src/basic/rm-rf.h
src/test/meson.build
src/test/test-rm-rf.c [new file with mode: 0644]