summaryrefslogtreecommitdiffstats
path: root/src/intrf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-06-23 18:58:12 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-06-23 18:58:12 +0200
commit25b7a566d39b70f8a4588e81fa9fb9724602ab84 (patch)
tree2048b219346e664963925563abf1f59de3d13e70 /src/intrf.c
parent813f8cc70a01b7275f1e38829f11f5cca372c902 (diff)
When navigating, allow to follow symlink
Diffstat (limited to 'src/intrf.c')
-rw-r--r--src/intrf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/intrf.c b/src/intrf.c
index cbcaf2f..c40cc70 100644
--- a/src/intrf.c
+++ b/src/intrf.c
@@ -1768,7 +1768,9 @@ char *ask_location(const char*msg, const char *src_dir)
{
struct file_info *dir_info;
dir_info=td_list_entry(dir_current, struct file_info, list);
- if(dir_current!=&dir_list.list && LINUX_S_ISDIR(dir_info->stat.st_mode))
+ if(dir_current!=&dir_list.list &&
+ (LINUX_S_ISDIR(dir_info->stat.st_mode) || LINUX_S_ISLNK(dir_info->stat.st_mode)))
+ if(dir_current!=&dir_list.list)
{
if(strcmp(dir_info->name,".")==0)
{