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:
parent
6e70ba7d1d
commit
02bfbb712a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue