]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: show file type in octal, instead of hex
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 Mar 2023 13:00:34 +0000 (22:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 Mar 2023 13:27:41 +0000 (22:27 +0900)
src/tmpfiles/tmpfiles.c

index 098b12c49522a573e4e5ee73d0462a810571c94e..73beff063b80ce12b921d917dded1375cef15c54 100644 (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. */