From 02bfbb712afe150d23d6d61fdd9aa244a8c8b313 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 27 Feb 2019 21:32:21 +0100 Subject: [PATCH] Userland: /bin/ls should show major,minor for block devices. --- Userland/ls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/ls.cpp b/Userland/ls.cpp index 4b9560562c..edfa2b23fe 100644 --- a/Userland/ls.cpp +++ b/Userland/ls.cpp @@ -163,7 +163,7 @@ int do_dir(const char* path) printf(" %4u %4u", st.st_uid, st.st_gid); - if (S_ISCHR(st.st_mode)) + if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode)) printf(" %4u,%4u ", major(st.st_rdev), minor(st.st_rdev)); else printf(" %10u ", st.st_size);