1
Fork 0
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:
Nico Weber 2021-01-06 10:29:33 -05:00 committed by Andreas Kling
parent ddc255a6c0
commit 8079d566f1

View file

@ -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());