fs/fs.c: add symbolic link case to fs_ls_generic()

Adds an 'else if' statement inside the loop to check for symbolic links.

Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
This commit is contained in:
Joao Marcos Costa 2020-07-30 15:33:51 +02:00 committed by Tom Rini
parent 3634b35089
commit 02c366b5d5
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ static int fs_ls_generic(const char *dirname)
if (dent->type == FS_DT_DIR) {
printf(" %s/\n", dent->name);
ndirs++;
} else if (dent->type == FS_DT_LNK) {
printf(" <SYM> %s\n", dent->name);
nfiles++;
} else {
printf(" %8lld %s\n", dent->size, dent->name);
nfiles++;