mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:37:44 +00:00
ls: Widen the user and group fields a little bit
I didn't like looking at /tmp/portal now that lookup:lookup owns one of the sockets there :^)
This commit is contained in:
parent
f5d9f11e52
commit
41d5f5c3b5
1 changed files with 4 additions and 4 deletions
|
@ -199,14 +199,14 @@ bool print_filesystem_object(const String& path, const String& name, const struc
|
||||||
passwd* pwd = getpwuid(st.st_uid);
|
passwd* pwd = getpwuid(st.st_uid);
|
||||||
group* grp = getgrgid(st.st_gid);
|
group* grp = getgrgid(st.st_gid);
|
||||||
if (!flag_print_numeric && pwd) {
|
if (!flag_print_numeric && pwd) {
|
||||||
printf(" %5s", pwd->pw_name);
|
printf(" %7s", pwd->pw_name);
|
||||||
} else {
|
} else {
|
||||||
printf(" %5u", st.st_uid);
|
printf(" %7u", st.st_uid);
|
||||||
}
|
}
|
||||||
if (!flag_print_numeric && grp) {
|
if (!flag_print_numeric && grp) {
|
||||||
printf(" %5s", grp->gr_name);
|
printf(" %7s", grp->gr_name);
|
||||||
} else {
|
} else {
|
||||||
printf(" %5u", st.st_gid);
|
printf(" %7u", st.st_gid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode)) {
|
if (S_ISCHR(st.st_mode) || S_ISBLK(st.st_mode)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue