diff options
author | Ron Yorston <rmy@pobox.com> | 2014-05-06 20:41:10 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2014-05-06 20:41:10 +0100 |
commit | d3bef66324a8ca5eed9ad7c15ead3a1cc9a9151e (patch) | |
tree | 4b364ba4b6b9e96c2629fe382fef0248d76833dd /win32 | |
parent | 7905d97aeece18da362a5a1e066abff2d2e5c16b (diff) | |
parent | d257608a8429b64e1a04c7cb6d99975eeb2c3955 (diff) | |
download | busybox-w32-d3bef66324a8ca5eed9ad7c15ead3a1cc9a9151e.tar.gz busybox-w32-d3bef66324a8ca5eed9ad7c15ead3a1cc9a9151e.tar.bz2 busybox-w32-d3bef66324a8ca5eed9ad7c15ead3a1cc9a9151e.zip |
Merge branch 'busybox' into merge
Conflicts:
debianutils/which.c
editors/vi.c
libbb/executable.c
Diffstat (limited to 'win32')
-rw-r--r-- | win32/mingw.c | 4 | ||||
-rw-r--r-- | win32/process.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index 501c886e0..044d5c50f 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -943,11 +943,11 @@ char *win32_execable_file(const char *p) | |||
943 | if ( (path=malloc(len+5)) != NULL ) { | 943 | if ( (path=malloc(len+5)) != NULL ) { |
944 | memcpy(path, p, len); | 944 | memcpy(path, p, len); |
945 | memcpy(path+len, ".exe", 5); | 945 | memcpy(path+len, ".exe", 5); |
946 | if (execable_file(path)) { | 946 | if (file_is_executable(path)) { |
947 | return path; | 947 | return path; |
948 | } | 948 | } |
949 | memcpy(path+len, ".com", 5); | 949 | memcpy(path+len, ".com", 5); |
950 | if (execable_file(path)) { | 950 | if (file_is_executable(path)) { |
951 | return path; | 951 | return path; |
952 | } | 952 | } |
953 | free(path); | 953 | free(path); |
diff --git a/win32/process.c b/win32/process.c index e2e81c793..462731a2d 100644 --- a/win32/process.c +++ b/win32/process.c | |||
@@ -238,7 +238,7 @@ mingw_spawn_interpreter(int mode, const char *prog, const char *const *argv, con | |||
238 | else { | 238 | else { |
239 | char *path = xstrdup(getenv("PATH")); | 239 | char *path = xstrdup(getenv("PATH")); |
240 | char *tmp = path; | 240 | char *tmp = path; |
241 | char *iprog = find_execable(interpr, &tmp); | 241 | char *iprog = find_executable(interpr, &tmp); |
242 | free(path); | 242 | free(path); |
243 | if (!iprog) { | 243 | if (!iprog) { |
244 | free(new_argv); | 244 | free(new_argv); |
@@ -273,9 +273,9 @@ mingw_spawn_1(int mode, const char *cmd, const char *const *argv, const char *co | |||
273 | return -1; | 273 | return -1; |
274 | } | 274 | } |
275 | 275 | ||
276 | /* exists_execable() does not return new file name */ | 276 | /* executable_exists() does not return new file name */ |
277 | tmp = path = xstrdup(path); | 277 | tmp = path = xstrdup(path); |
278 | prog = find_execable(cmd, &tmp); | 278 | prog = find_executable(cmd, &tmp); |
279 | free(path); | 279 | free(path); |
280 | if (!prog) { | 280 | if (!prog) { |
281 | errno = ENOENT; | 281 | errno = ENOENT; |