summaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-02-14 19:55:58 +0000
committerDenis Vlasenko2008-02-14 19:55:58 +0000
commit39487e2d6a9a2b6e520969f65b4d326da82e354f (patch)
tree84536df4f6153f7917c0b1286acf8a2806183eeb /libbb/lineedit.c
parent94e87bc83d81e1226224e39c50b4eea8384bbdcf (diff)
downloadbusybox-39487e2d6a9a2b6e520969f65b4d326da82e354f.zip
busybox-39487e2d6a9a2b6e520969f65b4d326da82e354f.tar.gz
libbb: filename completion should match dangling symlinks too
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index c191b05..18cf7cc 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -522,7 +522,7 @@ static void exe_n_cwd_tab_completion(char *command, int type)
}
found = concat_path_file(paths[i], str_found);
/* hmm, remover in progress? */
- if (stat(found, &st) < 0)
+ if (lstat(found, &st) < 0)
goto cont;
/* find with dirs? */
if (paths[i] != dirbuf)