diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/execable.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libbb/execable.c b/libbb/execable.c index 817c06736..601c7539e 100644 --- a/libbb/execable.c +++ b/libbb/execable.c | |||
@@ -59,3 +59,13 @@ int exists_execable(const char *filename) | |||
59 | } | 59 | } |
60 | return 0; | 60 | return 0; |
61 | } | 61 | } |
62 | |||
63 | #ifdef ENABLE_FEATURE_EXEC_PREFER_APPLETS | ||
64 | /* just like the real execvp, but try to launch an applet named 'file' first | ||
65 | */ | ||
66 | int bb_execvp(const char *file, char *const argv[]) | ||
67 | { | ||
68 | return execvp(find_applet_by_name(file) ? CONFIG_BUSYBOX_EXEC_PATH : file, | ||
69 | argv); | ||
70 | } | ||
71 | #endif | ||