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

Kernel: Oops, I mixed up st_dev and st_rdev in struct stat.

This commit is contained in:
Andreas Kling 2019-02-03 06:23:10 +01:00
parent e895d6c48e
commit 0c9a2b1430
2 changed files with 3 additions and 3 deletions

View file

@ -159,7 +159,7 @@ int do_dir(const char* path)
printf(" %4u %4u", st.st_uid, st.st_gid);
if (S_ISCHR(st.st_mode))
printf(" %4u,%4u ", major(st.st_dev), minor(st.st_dev));
printf(" %4u,%4u ", major(st.st_rdev), minor(st.st_rdev));
else
printf(" %10u ", st.st_size);