diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 060914f27c..4342ed70ab 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -1060,6 +1060,12 @@ static int fd_set_perms( } shortcut: + if (arg_dry_run) { + log_debug("Would relabel \"%s\"", path); + return 0; + } + + log_debug("Relabelling \"%s\"", path); return label_fix_full(fd, /* inode_path= */ NULL, /* label_path= */ path, 0); }