chiark / gitweb /
util: rm_rf() refuse cleaning non-memory file systems, as extra paranoia
[elogind.git] / src / tmpfiles / tmpfiles.c
index e0b0e94664622306fd95fda4432d52ca68735c15..2d5d90d265a9d24a111bdd6242da2398a31aef75 100644 (file)
@@ -845,7 +845,7 @@ static int remove_item_instance(Item *i, const char *instance) {
         case RECURSIVE_REMOVE_PATH:
                 /* FIXME: we probably should use dir_cleanup() here
                  * instead of rm_rf() so that 'x' is honoured. */
-                r = rm_rf(instance, false, i->type == RECURSIVE_REMOVE_PATH, false);
+                r = rm_rf_dangerous(instance, false, i->type == RECURSIVE_REMOVE_PATH, false);
                 if (r < 0 && r != -ENOENT) {
                         log_error("rm_rf(%s): %s", instance, strerror(-r));
                         return r;