aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index e7de32250..f17c9a215 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -958,8 +958,8 @@ static NOINLINE unsigned complete_cmd_dir_file(const char *command, int type)
958 goto cont; /* hmm, remove in progress? */ 958 goto cont; /* hmm, remove in progress? */
959 959
960# if ENABLE_PLATFORM_MINGW32 960# if ENABLE_PLATFORM_MINGW32
961 if (type == FIND_EXE_ONLY && !S_ISDIR(st.st_mode) && 961 if (type == FIND_EXE_ONLY && S_ISREG(st.st_mode) &&
962 !file_is_executable(found)) 962 !(st.st_mode & S_IXUSR))
963 goto cont; 963 goto cont;
964# endif 964# endif
965 965