Browse Source

Show dir symbol in symlink file stat

master
Arun Prakash Jana 6 years ago
parent
commit
994ee0d790
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      nnn.c

+ 4
- 0
nnn.c View File

@@ -1760,6 +1760,10 @@ show_stats(char *fpath, char *fname, struct stat *sb)
ssize_t len = readlink(fpath, g_buf, MAX_CMD_LEN);

if (len != -1) {
struct stat tgtsb;
if (!stat(fpath, &tgtsb) && S_ISDIR(tgtsb.st_mode))
g_buf[len++] = '/';

g_buf[len] = '\0';

/*


Loading…
Cancel
Save