mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
ls: Left justify owner and group information in long format
This commit is contained in:
parent
cb1851f3cc
commit
938a287d3e
Notes:
sideshowbarker
2024-07-17 06:46:15 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/938a287d3e Pull-request: https://github.com/SerenityOS/serenity/pull/21239
1 changed files with 4 additions and 4 deletions
|
@ -373,18 +373,18 @@ static bool print_filesystem_object(DeprecatedString const& path, DeprecatedStri
|
|||
if (!flag_hide_owner) {
|
||||
auto username = users.get(st.st_uid);
|
||||
if (!flag_print_numeric && username.has_value()) {
|
||||
printf(" %7s", username.value().characters());
|
||||
printf(" %-7s", username.value().characters());
|
||||
} else {
|
||||
printf(" %7u", st.st_uid);
|
||||
printf(" %-7u", st.st_uid);
|
||||
}
|
||||
}
|
||||
|
||||
if (!flag_hide_group) {
|
||||
auto groupname = groups.get(st.st_gid);
|
||||
if (!flag_print_numeric && groupname.has_value()) {
|
||||
printf(" %7s", groupname.value().characters());
|
||||
printf(" %-7s", groupname.value().characters());
|
||||
} else {
|
||||
printf(" %7u", st.st_gid);
|
||||
printf(" %-7u", st.st_gid);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue