1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

ls: Fix alignment of device files in long mode (ls -l)

This commit is contained in:
Andreas Kling 2019-10-19 20:52:54 +02:00
parent 8a3fabffb3
commit 7b0f3b19df

View file

@ -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);