diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/boom.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -105,7 +105,13 @@ static int f(const char *fpath, const struct stat *, int typeflag, struct FTW *f if (level != 0) { printf("|-- "); } - puts(fname); + printf("%s", fname); + if (typeflag == FTW_SL) { + char real_name[PATH_MAX] = {0}; + readlink(fpath, real_name, PATH_MAX); + printf(" -> %s", real_name); + } + printf("\n"); done: prev_level = level; |