From 4ab2ff95ceebe3d5280a55f61abd4590bb56f01a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 29 Jan 2021 23:05:02 +0100 Subject: [PATCH] ls: Lazily align the number of hard links in ls output :^) Fixes #5155 --- Userland/Utilities/ls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/ls.cpp b/Userland/Utilities/ls.cpp index bdeba14361..4c26dd68c8 100644 --- a/Userland/Utilities/ls.cpp +++ b/Userland/Utilities/ls.cpp @@ -288,7 +288,7 @@ 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); + printf(" %3u", st.st_nlink); auto username = users.get(st.st_uid); if (!flag_print_numeric && username.has_value()) {