From 7b0f3b19df1a0949b3903dbf691af5bd9a3da006 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 19 Oct 2019 20:52:54 +0200 Subject: [PATCH] ls: Fix alignment of device files in long mode (ls -l) --- Userland/ls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/ls.cpp b/Userland/ls.cpp index c66af80c4d..fff7188ba2 100644 --- a/Userland/ls.cpp +++ b/Userland/ls.cpp @@ -206,7 +206,7 @@ bool print_filesystem_object(const String& path, const String& name, const struc } if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode)) { - printf(" %4u,%4u ", major(st.st_rdev), minor(st.st_rdev)); + printf(" %4u,%4u ", major(st.st_rdev), minor(st.st_rdev)); } else { if (flag_human_readable) { ASSERT(st.st_size > 0);