]> Sergey Matveev's repositories - nnn.git/commitdiff
Show correct information for symbolic links
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 2 Jul 2017 11:09:06 +0000 (16:39 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 2 Jul 2017 11:09:06 +0000 (16:39 +0530)
nnn.c

diff --git a/nnn.c b/nnn.c
index 1c35b05ae6e16ab3603a7a75721d5235dd560b76..93feadde637ac1e9cc967fef03320b1bba68bb82 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -1346,6 +1346,7 @@ show_stats(char *fpath, char *fname, struct stat *sb)
                        g_buf[len] = '\0';
                        dprintf(fd, "    File: '%s' -> ", unescape(fname));
                        dprintf(fd, "'%s'", unescape(g_buf));
+                       xstrlcpy(g_buf, "symbolic link", MAX_CMD_LEN);
                }
        } else
                dprintf(fd, "    File: '%s'", unescape(fname));