Merge pull request #26880 from yuwata/test-tmpfiles

tmpfiles: cleanups
This commit is contained in:
Yu Watanabe
2023-03-19 02:49:11 +09:00
committed by GitHub
2 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -2286,7 +2286,7 @@ static int rm_if_wrong_type_safe(
return 0;
(void) fd_get_path(parent_fd, &parent_name);
log_notice("Wrong file type 0x%x; rm -rf \"%s/%s\"", st.st_mode & S_IFMT, strna(parent_name), name);
log_notice("Wrong file type 0o%o; rm -rf \"%s/%s\"", st.st_mode & S_IFMT, strna(parent_name), name);
/* If the target of the symlink was the wrong type, the link needs to be removed instead of the
* target, so make sure it is identified as a link and not a directory. */