From 7ca1a3a1d43488d254b515a59bf40a75b94bff8b Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 18 Mar 2023 22:00:34 +0900 Subject: [PATCH] tmpfiles: show file type in octal, instead of hex (cherry picked from commit 056ff0b455ec54c9cadd119b09d0ec36efdee808) --- src/tmpfiles/tmpfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 458aed7054..f3dd3faa0b 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -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. */