mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
Userland: Include hard link count in "ls -l" output
This commit is contained in:
parent
ddc255a6c0
commit
8079d566f1
Notes:
sideshowbarker
2024-07-19 00:04:01 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/8079d566f17 Pull-request: https://github.com/SerenityOS/serenity/pull/4826 Reviewed-by: https://github.com/awesomekling
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…
Reference in a new issue