summaryrefslogtreecommitdiff
path: root/src/tmpfiles
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-03-18 22:00:34 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-03-18 22:27:41 +0900
commit056ff0b455ec54c9cadd119b09d0ec36efdee808 (patch)
treea36a897bbda97509ccdb4a28e2b67186bbc89f7b /src/tmpfiles
parentf5c0edd1661d199fe3466bceed7c2efb3e7d6e42 (diff)
downloadsystemd-056ff0b455ec54c9cadd119b09d0ec36efdee808.tar.gz
tmpfiles: show file type in octal, instead of hex
Diffstat (limited to 'src/tmpfiles')
-rw-r--r--src/tmpfiles/tmpfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 098b12c495..73beff063b 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. */