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/mingw.c | |
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/mingw.c')
-rw-r--r-- | win32/mingw.c | 4 |
1 files changed, 2 insertions, 2 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); |