summaryrefslogtreecommitdiffstats
path: root/src/basic/rm-rf.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-04-29 15:45:19 +0200
committerLennart Poettering <lennart@poettering.net>2019-04-29 16:17:29 +0200
commitc0ba6b928676acbc6562c28edf820eaf2b5a1d4f (patch)
treec67f2493cf69cc0dced532a9f323a9f11fe3cc3d /src/basic/rm-rf.c
parentnetwork: drop invalid assertion (diff)
downloadsystemd-c0ba6b928676acbc6562c28edf820eaf2b5a1d4f.tar.xz
systemd-c0ba6b928676acbc6562c28edf820eaf2b5a1d4f.zip
switch-root: modernize rm_rf_children() invocation a bit
Diffstat (limited to 'src/basic/rm-rf.c')
-rw-r--r--src/basic/rm-rf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/rm-rf.c b/src/basic/rm-rf.c
index acc0f88cd2..3843fc36fc 100644
--- a/src/basic/rm-rf.c
+++ b/src/basic/rm-rf.c
@@ -33,8 +33,8 @@ int rm_rf_children(int fd, RemoveFlags flags, struct stat *root_dev) {
assert(fd >= 0);
- /* This returns the first error we run into, but nevertheless
- * tries to go on. This closes the passed fd. */
+ /* This returns the first error we run into, but nevertheless tries to go on. This closes the passed
+ * fd, in all cases, including on failure.. */
if (!(flags & REMOVE_PHYSICAL)) {