bore

basic core utilities (PD)
git clone git://bvnf.space/bore.git
Log | Files | Refs | README

commit cde8553beabdeccb1134b23bb75d7c6a7b899aff
parent 1db875d86d694d5733930e38aadbaff8ffdcff8d
Author: phoebos <ben@bvnf.space>
Date:   Wed, 13 Oct 2021 00:41:13 +0100

ls: use %u for uid/gid

Diffstat:
Mls.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ls.c b/ls.c @@ -108,7 +108,7 @@ printname(struct ent *e, uint32_t flags) { return 1; } else { /* couldn't find a user with that uid; print the numeric value */ - printf("%-8d ", e->uid); + printf("%-8u ", e->uid); } } else { printf("%-8.8s ", pwd->pw_name); @@ -125,7 +125,7 @@ printname(struct ent *e, uint32_t flags) { return 1; } else { /* couldn't find a group with that gid; print the numeric value */ - printf("%-8d ", e->gid); + printf("%-8u ", e->gid); } } else { printf("%-8.8s ", grp->gr_name);