From 39487e2d6a9a2b6e520969f65b4d326da82e354f Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 14 Feb 2008 19:55:58 +0000 Subject: [PATCH] libbb: filename completion should match dangling symlinks too --- libbb/lineedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } 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) -- 2.25.1