aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-02-14 19:55:58 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-02-14 19:55:58 +0000
commit39487e2d6a9a2b6e520969f65b4d326da82e354f (patch)
tree84536df4f6153f7917c0b1286acf8a2806183eeb
parent94e87bc83d81e1226224e39c50b4eea8384bbdcf (diff)
downloadbusybox-w32-39487e2d6a9a2b6e520969f65b4d326da82e354f.tar.gz
busybox-w32-39487e2d6a9a2b6e520969f65b4d326da82e354f.tar.bz2
busybox-w32-39487e2d6a9a2b6e520969f65b4d326da82e354f.zip
libbb: filename completion should match dangling symlinks too
-rw-r--r--libbb/lineedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index c191b0572..18cf7cc99 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -522,7 +522,7 @@ static void exe_n_cwd_tab_completion(char *command, int type)
522 } 522 }
523 found = concat_path_file(paths[i], str_found); 523 found = concat_path_file(paths[i], str_found);
524 /* hmm, remover in progress? */ 524 /* hmm, remover in progress? */
525 if (stat(found, &st) < 0) 525 if (lstat(found, &st) < 0)
526 goto cont; 526 goto cont;
527 /* find with dirs? */ 527 /* find with dirs? */
528 if (paths[i] != dirbuf) 528 if (paths[i] != dirbuf)