NSH Fix ls -l output for regular files

This commit is contained in:
Gregory Nutt 2014-09-30 14:32:23 -06:00
parent c993573dc2
commit 763519b00a

View File

@ -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]='?';
}