sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 071dcc4d6b0b901591a8b591c746390f2c3e0f9c
parent b5ebd49dd3fa06fd4a505ba9421fda8c6d65861f
Author: Evan Gates <evan.gates@gmail.com>
Date:   Wed,  5 Oct 2016 10:57:38 -0700

ls: fix ls -lq to respect -q flag

Diffstat:
Mls.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ls.c b/ls.c @@ -207,7 +207,7 @@ output(const struct entry *ent) printf("%10s ", humansize(ent->size)); else printf("%10lu ", (unsigned long)ent->size); - printf("%s %s%s", buf, ent->name, indicator(ent->mode)); + printf("%s %s%s", buf, name, indicator(ent->mode)); if (S_ISLNK(ent->mode)) { if ((len = readlink(ent->name, buf, sizeof(buf) - 1)) < 0) eprintf("readlink %s:", ent->name);