Fix: tmpfiles clean device node (#42791)

Two minor issues regarding the tmpfile.c file
This commit is contained in:
Lennart Poettering
2026-07-02 21:33:34 +02:00
committed by GitHub
+3 -4
View File
@@ -2569,10 +2569,10 @@ static int create_device(
}
}
log_debug("%s %s device node \"%s\" %u:%u.",
log_debug("%s %s device node \"%s\" " DEVNUM_FORMAT_STR ".",
creation_mode_verb_to_string(creation),
i->type == CREATE_BLOCK_DEVICE ? "block" : "char",
i->path, major(i->mode), minor(i->mode));
i->path, DEVNUM_FORMAT_VAL(i->major_minor));
return fd_set_perms(c, i, fd, i->path, &st, creation);
@@ -3486,8 +3486,7 @@ static int clean_item(Context *c, Item *i) {
case CREATE_SUBVOLUME_INHERIT_QUOTA:
case CREATE_SUBVOLUME_NEW_QUOTA:
case COPY_FILES:
clean_item_instance(c, i, i->path, CREATION_EXISTING);
return 0;
return clean_item_instance(c, i, i->path, CREATION_EXISTING);
case EMPTY_DIRECTORY:
case IGNORE_PATH: