commit 071dcc4d6b0b901591a8b591c746390f2c3e0f9c
Author: Evan Gates <[email protected]>
AuthorDate: Wed Oct 5 10:57:38 2016 -0700
Commit: Laslo Hunhold <[email protected]>
CommitDate: Thu Oct 6 10:21:12 2016 +0200
ls: fix ls -lq to respect -q flag
diff --git a/ls.c b/ls.c
index b5c4b00..7c80d56 100644
--- 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);