v[hp]error_msg have 2-3 callsites only -> incorporate there.
[oweals/busybox.git] / libbb / execable.c
index 601c7539e6df7e1151461779bbca2ca24ecbf719..f679108be2a989ec8a5ffbb88948cf54b1aa4a59 100644 (file)
@@ -60,12 +60,12 @@ int exists_execable(const char *filename)
        return 0;
 }
 
-#ifdef ENABLE_FEATURE_EXEC_PREFER_APPLETS
+#if ENABLE_FEATURE_PREFER_APPLETS
 /* just like the real execvp, but try to launch an applet named 'file' first
  */
 int bb_execvp(const char *file, char *const argv[])
 {
-       return execvp(find_applet_by_name(file) ? CONFIG_BUSYBOX_EXEC_PATH : file,
+       return execvp(find_applet_by_name(file) ? bb_busybox_exec_path : file,
                                        argv);
 }
 #endif