mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
Userland: Include hard link count in "ls -l" output
This commit is contained in:
parent
ddc255a6c0
commit
8079d566f1
1 changed files with 2 additions and 0 deletions
|
@ -288,6 +288,8 @@ static bool print_filesystem_object(const String& path, const String& name, cons
|
|||
else
|
||||
printf("%c", st.st_mode & S_IXOTH ? 'x' : '-');
|
||||
|
||||
printf(" %u", st.st_nlink);
|
||||
|
||||
auto username = users.get(st.st_uid);
|
||||
if (!flag_print_numeric && username.has_value()) {
|
||||
printf(" %7s", username.value().characters());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue