Make ls -lF work.

This commit is contained in:
rsc 2007-01-29 15:12:42 +00:00
parent 91fb6aaa3d
commit c2ab969eca

View file

@ -227,17 +227,16 @@ format(Dir *db, char *name)
db->qid.type); db->qid.type);
if(lflag) if(lflag)
Bprint(&bin, Bprint(&bin,
Qflag? "%M %C %*ud %*s %s %*llud %s %s\n" : "%M %C %*ud %*s %s %*llud %s %q\n", "%M %C %*ud %*s %s %*llud %s ",
db->mode, db->type, db->mode, db->type,
vwidth, db->dev, vwidth, db->dev,
-uwidth, db->uid, -uwidth, db->uid,
db->gid, db->gid,
(int)(glwidth-strlen(db->gid)), db->length, (int)(glwidth-strlen(db->gid)), db->length,
asciitime(uflag? db->atime : db->mtime), name); asciitime(uflag? db->atime : db->mtime));
else Bprint(&bin,
Bprint(&bin, Qflag? "%s%s\n" : "%q%s\n",
Qflag? "%s%s\n" : "%q%s\n", name, fileflag(db));
name, fileflag(db));
} }
void void