From c2ab969ecafadef496845a525c7f19fa0ce7f42f Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 29 Jan 2007 15:12:42 +0000 Subject: [PATCH] Make ls -lF work. --- src/cmd/ls.C | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/cmd/ls.C b/src/cmd/ls.C index f52fc8c9..60615059 100644 --- a/src/cmd/ls.C +++ b/src/cmd/ls.C @@ -227,17 +227,16 @@ format(Dir *db, char *name) db->qid.type); if(lflag) 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, vwidth, db->dev, -uwidth, db->uid, db->gid, (int)(glwidth-strlen(db->gid)), db->length, - asciitime(uflag? db->atime : db->mtime), name); - else - Bprint(&bin, - Qflag? "%s%s\n" : "%q%s\n", - name, fileflag(db)); + asciitime(uflag? db->atime : db->mtime)); + Bprint(&bin, + Qflag? "%s%s\n" : "%q%s\n", + name, fileflag(db)); } void