diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-03 06:23:10 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-03 06:23:10 +0100 |
commit | 0c9a2b14305576621632c7f1399d19dd5c67153f (patch) | |
tree | db245198f05ed24a906a59a50c2e8904b352460f /Userland | |
parent | e895d6c48e9ee0c7ed78942a1f17fd4840a055a9 (diff) | |
download | serenity-0c9a2b14305576621632c7f1399d19dd5c67153f.zip |
Kernel: Oops, I mixed up st_dev and st_rdev in struct stat.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/ls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/ls.cpp b/Userland/ls.cpp index 2ce036152f..80ca15bd64 100644 --- a/Userland/ls.cpp +++ b/Userland/ls.cpp @@ -159,7 +159,7 @@ int do_dir(const char* path) printf(" %4u %4u", st.st_uid, st.st_gid); if (S_ISCHR(st.st_mode)) - printf(" %4u,%4u ", major(st.st_dev), minor(st.st_dev)); + printf(" %4u,%4u ", major(st.st_rdev), minor(st.st_rdev)); else printf(" %10u ", st.st_size); |