diff options
Diffstat (limited to 'debianutils/which.c')
-rw-r--r-- | debianutils/which.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debianutils/which.c b/debianutils/which.c index 4590653b3..b2cd4de18 100644 --- a/debianutils/which.c +++ b/debianutils/which.c | |||
@@ -12,9 +12,9 @@ | |||
12 | //config: which is used to find programs in your PATH and | 12 | //config: which is used to find programs in your PATH and |
13 | //config: print out their pathnames. | 13 | //config: print out their pathnames. |
14 | 14 | ||
15 | // NOTE: For WIN32 this applet is NOEXEC as alloc_system_drive() and | 15 | // NOTE: For WIN32 this applet is NOEXEC as alloc_ext_space() and |
16 | // find_executable() both allocate memory. And find_executable() | 16 | // find_executable() both allocate memory. And find_executable() |
17 | // calls alloc_system_drive(). | 17 | // calls alloc_ext_space(). |
18 | 18 | ||
19 | //applet:IF_PLATFORM_MINGW32(IF_WHICH(APPLET_NOEXEC(which, which, BB_DIR_USR_BIN, BB_SUID_DROP, which))) | 19 | //applet:IF_PLATFORM_MINGW32(IF_WHICH(APPLET_NOEXEC(which, which, BB_DIR_USR_BIN, BB_SUID_DROP, which))) |
20 | //applet:IF_PLATFORM_POSIX(IF_WHICH(APPLET_NOFORK(which, which, BB_DIR_USR_BIN, BB_SUID_DROP, which))) | 20 | //applet:IF_PLATFORM_POSIX(IF_WHICH(APPLET_NOFORK(which, which, BB_DIR_USR_BIN, BB_SUID_DROP, which))) |
@@ -87,7 +87,7 @@ int which_main(int argc UNUSED_PARAM, char **argv) | |||
87 | } | 87 | } |
88 | #else | 88 | #else |
89 | if (has_path(*argv)) { | 89 | if (has_path(*argv)) { |
90 | char *path = alloc_system_drive(*argv); | 90 | char *path = alloc_ext_space(*argv); |
91 | 91 | ||
92 | if (add_win32_extension(path) || file_is_executable(path)) { | 92 | if (add_win32_extension(path) || file_is_executable(path)) { |
93 | missing = 0; | 93 | missing = 0; |