summaryrefslogtreecommitdiff
path: root/Config.in
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-21 00:41:04 +0000
committerDenis Vlasenko2007-01-21 00:41:04 +0000
commit2f0c0d0b8829b8aea97bc09833e172c59b55cd94 (patch)
tree3e82c2dd94d674a723f3d7df350f32dc8892adc1 /Config.in
parentb3f3c23f786a2486a8545ef0d904061ac83e6453 (diff)
downloadbusybox-2f0c0d0b8829b8aea97bc09833e172c59b55cd94.zip
busybox-2f0c0d0b8829b8aea97bc09833e172c59b55cd94.tar.gz
Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our own
executable if we asked to exec someting with argv[0] == known_applet" Use it in init. Also respect PATH in init, remove explicit "/sbin" etc from exec. Patch by Gabriel L. Somlo <somlo@cmu.edu>
Diffstat (limited to 'Config.in')
-rw-r--r--Config.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/Config.in b/Config.in
index acdeccc..2066e42 100644
--- a/Config.in
+++ b/Config.in
@@ -231,6 +231,14 @@ config SELINUX
Most people will leave this set to 'N'.
+config FEATURE_EXEC_PREFER_APPLETS
+ bool "exec prefers applets"
+ default n
+ help
+ This is an experimental option which directs applets about to
+ call 'exec' to try and find an applicable busybox applet before
+ searching the executable path for a binary or symlink to execute.
+
config BUSYBOX_EXEC_PATH
string "Path to BusyBox executable"
default "/proc/self/exe"
@@ -439,7 +447,7 @@ config INSTALL_APPLET_HARDLINKS
config INSTALL_APPLET_DONT
bool
prompt "not installed"
- depends on FEATURE_INSTALLER || FEATURE_SH_STANDALONE_SHELL
+ depends on FEATURE_INSTALLER || FEATURE_SH_STANDALONE_SHELL || FEATURE_EXEC_PREFER_APPLETS
help
Do not install applet links. Useful when using the -install feature
or a standalone shell for rescue pruposes.