1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

Userland: /bin/ls should show major,minor for block devices.

This commit is contained in:
Andreas Kling 2019-02-27 21:32:21 +01:00
parent 6e70ba7d1d
commit 02bfbb712a

View file

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