diff --git a/src/shared/rm-rf.c b/src/shared/rm-rf.c index a8693660fa..81ee5c37ba 100644 --- a/src/shared/rm-rf.c +++ b/src/shared/rm-rf.c @@ -129,7 +129,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)