summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-03 06:23:10 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-03 06:23:10 +0100
commit0c9a2b14305576621632c7f1399d19dd5c67153f (patch)
treedb245198f05ed24a906a59a50c2e8904b352460f /Userland
parente895d6c48e9ee0c7ed78942a1f17fd4840a055a9 (diff)
downloadserenity-0c9a2b14305576621632c7f1399d19dd5c67153f.zip
Kernel: Oops, I mixed up st_dev and st_rdev in struct stat.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/ls.cpp2
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);