[hackers] [sbase] ls: fix ls -lq to respect -q flag || Evan Gates
commit 071dcc4d6b0b901591a8b591c746390f2c3e0f9c
Author: Evan Gates <evan.gates_AT_gmail.com>
AuthorDate: Wed Oct 5 10:57:38 2016 -0700
Commit: Laslo Hunhold <dev_AT_frign.de>
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
_AT_@ -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);
Received on Thu Oct 06 2016 - 10:21:29 CEST
This archive was generated by hypermail 2.3.0
: Thu Oct 06 2016 - 10:24:15 CEST