From: Joao Marcos Costa Date: Thu, 30 Jul 2020 13:33:51 +0000 (+0200) Subject: fs/fs.c: add symbolic link case to fs_ls_generic() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=02c366b5d5f7022e573732fbe7b80c199e934d4f;p=u-boot.git 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 --- diff --git a/fs/fs.c b/fs/fs.c index 5b31a369f7..17e4bc33f7 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -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(" %s\n", dent->name); + nfiles++; } else { printf(" %8lld %s\n", dent->size, dent->name); nfiles++;