aboutsummaryrefslogtreecommitdiff
path: root/libbb/execable.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/execable.c')
-rw-r--r--libbb/execable.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbb/execable.c b/libbb/execable.c
index d84364753..129dc106c 100644
--- a/libbb/execable.c
+++ b/libbb/execable.c
@@ -32,6 +32,13 @@ char *find_execable(const char *filename)
32 n = strchr(p, ':'); 32 n = strchr(p, ':');
33 if (n) 33 if (n)
34 *n++ = '\0'; 34 *n++ = '\0';
35#ifdef __MINGW32__
36 else {
37 n = strchr(p, ';');
38 if (n)
39 *n++ = '\0';
40 }
41#endif
35 if (*p != '\0') { /* it's not a PATH="foo::bar" situation */ 42 if (*p != '\0') { /* it's not a PATH="foo::bar" situation */
36 p = concat_path_file(p, filename); 43 p = concat_path_file(p, filename);
37 if (execable_file(p)) { 44 if (execable_file(p)) {