From b0eaca436c19dc5e18f43e07cbfd36595c524cfb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 15 Oct 2018 02:12:09 +0200 Subject: [PATCH] "stat" command should print st_mode in octal. --- VirtualFileSystem/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VirtualFileSystem/test.cpp b/VirtualFileSystem/test.cpp index 7b07a6fc39..1697afe6e3 100644 --- a/VirtualFileSystem/test.cpp +++ b/VirtualFileSystem/test.cpp @@ -152,7 +152,7 @@ int main(int c, char** v) } printf("st_dev: %u\n", st.st_dev); printf("st_ino: %u\n", st.st_ino); - printf("st_mode: %u\n", st.st_mode); + printf("st_mode: %o\n", st.st_mode); printf("st_nlink: %u\n", st.st_nlink); printf("st_uid: %u\n", st.st_uid); printf("st_gid: %u\n", st.st_gid);