diff options
author | Joao Marcos Costa | 2020-07-30 15:33:51 +0200 |
---|---|---|
committer | Tom Rini | 2020-08-07 22:31:32 -0400 |
commit | 02c366b5d5f7022e573732fbe7b80c199e934d4f (patch) | |
tree | f636035a6a099447901fef96928cbc0f9322e569 | |
parent | 3634b35089df7e6edfe034c26e4243dc708b6382 (diff) |
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>
-rw-r--r-- | fs/fs.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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++; |