ls: fix ls -lq to respect -q flag

This commit is contained in:
Evan Gates 2016-10-05 10:57:38 -07:00 committed by Laslo Hunhold
parent b5ebd49dd3
commit 071dcc4d6b

2
ls.c
View File

@ -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);