diff options
Diffstat (limited to 'libbb/execable.c')
-rw-r--r-- | libbb/execable.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/execable.c b/libbb/execable.c index 3b144a730..e35dad208 100644 --- a/libbb/execable.c +++ b/libbb/execable.c | |||
@@ -101,12 +101,12 @@ int FAST_FUNC exists_execable(const char *filename) | |||
101 | } | 101 | } |
102 | 102 | ||
103 | #if ENABLE_FEATURE_PREFER_APPLETS | 103 | #if ENABLE_FEATURE_PREFER_APPLETS |
104 | /* just like the real execvp, but try to launch an applet named 'file' first | 104 | /* just like the real execvp, but try to launch an applet named 'file' first */ |
105 | */ | 105 | int FAST_FUNC BB_EXECVP(const char *file, char *const argv[]) |
106 | int FAST_FUNC bb_execvp(const char *file, char *const argv[]) | ||
107 | { | 106 | { |
108 | return execvp(find_applet_by_name(file) >= 0 ? bb_busybox_exec_path : file, | 107 | if (find_applet_by_name(file) >= 0) |
109 | argv); | 108 | execvp(bb_busybox_exec_path, argv); |
109 | return execvp(file, argv); | ||
110 | } | 110 | } |
111 | #endif | 111 | #endif |
112 | 112 | ||