chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tree-wide: use `!IN_SET(..)` for `a != b && a != c && …`
[elogind.git]
/
src
/
basic
/
rm-rf.c
diff --git
a/src/basic/rm-rf.c
b/src/basic/rm-rf.c
index 156366c7d1487f419697d7ae3808829ccfd1b578..fea9242bed20921fdef3c04c4466755ef968684c 100644
(file)
--- a/
src/basic/rm-rf.c
+++ b/
src/basic/rm-rf.c
@@
-206,7
+206,7
@@
int rm_rf(const char *path, RemoveFlags flags) {
fd = open(path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW|O_NOATIME);
if (fd < 0) {
- if (
errno != ENOTDIR && errno != ELOOP
)
+ if (
!IN_SET(errno, ENOTDIR, ELOOP)
)
return -errno;
if (!(flags & REMOVE_PHYSICAL)) {