diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2020-10-04 11:29:23 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2020-10-04 12:32:21 +0200 |
commit | 1d6cc5d0e5658848ac8cce5da22626d17f15b1ec (patch) | |
tree | 8db129e0c588d80dcf272334ea5c8844c8cfaeb0 /src/basic/rm-rf.c | |
parent | coccinelle: skip strjoin transformation in test_strjoin() (diff) | |
download | systemd-1d6cc5d0e5658848ac8cce5da22626d17f15b1ec.tar.xz systemd-1d6cc5d0e5658848ac8cce5da22626d17f15b1ec.zip |
tree-wide: coccinelle fixes
Diffstat (limited to 'src/basic/rm-rf.c')
-rw-r--r-- | src/basic/rm-rf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/rm-rf.c b/src/basic/rm-rf.c index 01ff6bb331..ab331cd677 100644 --- a/src/basic/rm-rf.c +++ b/src/basic/rm-rf.c @@ -45,7 +45,7 @@ static int unlinkat_harder( return -errno; if (!S_ISDIR(st.st_mode)) return -ENOTDIR; - if ((st.st_mode & 0700) == 0700) /* Already set? */ + if (FLAGS_SET(st.st_mode, 0700)) /* Already set? */ return -EACCES; /* original error */ if (st.st_uid != geteuid()) /* this only works if the UID matches ours */ return -EACCES; |