]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/import/pull-raw.c
util: rework rm_rf() logic
[thirdparty/systemd.git] / src / import / pull-raw.c
index c0c6d57eadee8d1224f02580dac0b5b0854b3e1b..e10b280b660a79d5fd22dc7b2808386508fae26d 100644 (file)
@@ -31,6 +31,7 @@
 #include "util.h"
 #include "macro.h"
 #include "mkdir.h"
+#include "rm-rf.h"
 #include "path-util.h"
 #include "import-util.h"
 #include "import-common.h"
@@ -278,7 +279,7 @@ static int raw_pull_make_local_copy(RawPull *i) {
 
         if (i->force_local) {
                 (void) btrfs_subvol_remove(p);
-                (void) rm_rf_dangerous(p, false, true, false);
+                (void) rm_rf(p, REMOVE_ROOT|REMOVE_PHYSICAL);
         }
 
         r = tempfn_random(p, &tp);