mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
ls: print inodes in short output format when -i arg is supplied
This commit is contained in:
parent
744af11991
commit
e7173e946f
1 changed files with 3 additions and 0 deletions
|
@ -376,6 +376,9 @@ static bool print_filesystem_object_short(const char* path, const char* name, si
|
|||
return false;
|
||||
}
|
||||
|
||||
if (flag_show_inode)
|
||||
printf("%08u ", st.st_ino);
|
||||
|
||||
*nprinted = print_name(st, name, nullptr, path);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue