From 763519b00ace2e5dceb1d9c1e58cf2473930cb54 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 30 Sep 2014 14:32:23 -0600 Subject: [PATCH] NSH Fix ls -l output for regular files --- nshlib/nsh_fscmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c index e4ecbdb67..34eb05c80 100644 --- a/nshlib/nsh_fscmds.c +++ b/nshlib/nsh_fscmds.c @@ -284,7 +284,7 @@ static int ls_handler(FAR struct nsh_vtbl_s *vtbl, FAR const char *dirpath, { details[0]='b'; } - else + else if (!S_ISREG(buf.st_mode)) { details[0]='?'; }