aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-04-22 22:22:02 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-04-23 04:44:35 +1000
commit2dfe91e03f98f779b784cc28f75f41d4c9acf208 (patch)
tree0067d98dea6ee54fd579756dc296f0ee2a77ab9d
parent7353f15c1c098785541d90a6b57468ca9cd23dae (diff)
downloadbusybox-w32-2dfe91e03f98f779b784cc28f75f41d4c9acf208.tar.gz
busybox-w32-2dfe91e03f98f779b784cc28f75f41d4c9acf208.tar.bz2
busybox-w32-2dfe91e03f98f779b784cc28f75f41d4c9acf208.zip
libbb/execable: make find_execable() recognize semicolon as path separator in PATH
-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)) {