ls: fix ls -lq to respect -q flag
This commit is contained in:
parent
b5ebd49dd3
commit
071dcc4d6b
2
ls.c
2
ls.c
|
@ -207,7 +207,7 @@ output(const struct entry *ent)
|
||||||
printf("%10s ", humansize(ent->size));
|
printf("%10s ", humansize(ent->size));
|
||||||
else
|
else
|
||||||
printf("%10lu ", (unsigned long)ent->size);
|
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 (S_ISLNK(ent->mode)) {
|
||||||
if ((len = readlink(ent->name, buf, sizeof(buf) - 1)) < 0)
|
if ((len = readlink(ent->name, buf, sizeof(buf) - 1)) < 0)
|
||||||
eprintf("readlink %s:", ent->name);
|
eprintf("readlink %s:", ent->name);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user