mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
ls: print inodes in short output format when -i arg is supplied
This commit is contained in:
parent
744af11991
commit
e7173e946f
Notes:
sideshowbarker
2024-07-19 01:29:30 +09:00
Author: https://github.com/bcoles
Commit: e7173e946f
Pull-request: https://github.com/SerenityOS/serenity/pull/4002
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