mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Show dir symbol in symlink file stat
This commit is contained in:
parent
8b8e644cf5
commit
994ee0d790
4
nnn.c
4
nnn.c
|
@ -1760,6 +1760,10 @@ show_stats(char *fpath, char *fname, struct stat *sb)
|
||||||
ssize_t len = readlink(fpath, g_buf, MAX_CMD_LEN);
|
ssize_t len = readlink(fpath, g_buf, MAX_CMD_LEN);
|
||||||
|
|
||||||
if (len != -1) {
|
if (len != -1) {
|
||||||
|
struct stat tgtsb;
|
||||||
|
if (!stat(fpath, &tgtsb) && S_ISDIR(tgtsb.st_mode))
|
||||||
|
g_buf[len++] = '/';
|
||||||
|
|
||||||
g_buf[len] = '\0';
|
g_buf[len] = '\0';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue