projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaf4b43
)
tmpfiles: 'st' may have been used uninitialized
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 23 Nov 2021 14:05:58 +0000
(15:05 +0100)
committer
Luca Boccassi
<bluca@debian.org>
Thu, 22 Dec 2022 11:55:42 +0000
(11:55 +0000)
(cherry picked from commit
160dadc0350c77d612aa9d5569f57d9bc84c3dca
)
(cherry picked from commit
7563de501246dccf5a9ea229933481aa1e7bd5c9
)
(cherry picked from commit
f54b97b1d05052bfee824ecc03ae9f07f6c37be8
)
(cherry picked from commit
ab927db9a7698ee1eceae14ecef7ab43ee3f104e
)
Gbp-Pq: Name tmpfiles-st-may-have-been-used-uninitialized.patch
src/basic/rm-rf.c
patch
|
blob
|
history
diff --git
a/src/basic/rm-rf.c
b/src/basic/rm-rf.c
index cf671c25764e817ada63a188a6aee409a1572981..a78aa4f8e8bfad3cf3bf0821f1b124b0a63621c9 100644
(file)
--- a/
src/basic/rm-rf.c
+++ b/
src/basic/rm-rf.c
@@
-128,7
+128,9
@@
static int rm_rf_children_inner(
assert(fd >= 0);
assert(fname);
- if (is_dir < 0 || (is_dir > 0 && (root_dev || (flags & REMOVE_SUBVOLUME)))) {
+ if (is_dir < 0 ||
+ root_dev ||
+ (is_dir > 0 && (root_dev || (flags & REMOVE_SUBVOLUME)))) {
r = fstatat_harder(fd, fname, &st, AT_SYMLINK_NOFOLLOW, flags);
if (r < 0)