]> git.ipfire.org Git - thirdparty/systemd.git/commit
rm-rf: also chmod() directory if it cannot be opened
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 Mar 2023 17:34:22 +0000 (02:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 31 Mar 2023 02:52:03 +0000 (11:52 +0900)
commit7be9657706073fb91e969c4cbb2905dbbce054bb
treeea681c13e7c96bed6a79d13d30338436063c911c
parent5171356eeed4790bf2eeb864dfda0d04041dedf2
rm-rf: also chmod() directory if it cannot be opened

Otherwise, directory with zero access mode cannot be removed.

This is a revised version of 808c8b25eece33c503430151641f5f77676af38c,
- dropped O_NOFOLLOW from fd_reopen()
- fixed error handling on opening path in rm_rf().
src/shared/rm-rf.c