ソースを参照

"stat" command should print st_mode in octal.

Andreas Kling 6 年 前
コミット
b0eaca436c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      VirtualFileSystem/test.cpp

+ 1 - 1
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);