mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Show correct information for symbolic links
This commit is contained in:
parent
166e31b512
commit
55d916921f
1
nnn.c
1
nnn.c
|
@ -1346,6 +1346,7 @@ show_stats(char *fpath, char *fname, struct stat *sb)
|
||||||
g_buf[len] = '\0';
|
g_buf[len] = '\0';
|
||||||
dprintf(fd, " File: '%s' -> ", unescape(fname));
|
dprintf(fd, " File: '%s' -> ", unescape(fname));
|
||||||
dprintf(fd, "'%s'", unescape(g_buf));
|
dprintf(fd, "'%s'", unescape(g_buf));
|
||||||
|
xstrlcpy(g_buf, "symbolic link", MAX_CMD_LEN);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
dprintf(fd, " File: '%s'", unescape(fname));
|
dprintf(fd, " File: '%s'", unescape(fname));
|
||||||
|
|
Loading…
Reference in a new issue