aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-07-18 23:59:17 +0000
committersandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-07-18 23:59:17 +0000
commitd4dbffaf02bf1c39047688988c44c8d60277a76a (patch)
tree02c3da3a9f7dcc562517bae2bc7cfca107d5cbd5
parent45630664f85f2ffaa6750c9922b82ad979e66c8e (diff)
downloadbusybox-w32-d4dbffaf02bf1c39047688988c44c8d60277a76a.tar.gz
busybox-w32-d4dbffaf02bf1c39047688988c44c8d60277a76a.tar.bz2
busybox-w32-d4dbffaf02bf1c39047688988c44c8d60277a76a.zip
Added a compile time option to suppress the "Using fallback.." message
if no busybox.conf file is existant. git-svn-id: svn://busybox.net/trunk/busybox@5065 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--applets/applets.c2
-rw-r--r--sysdeps/linux/config.in3
2 files changed, 5 insertions, 0 deletions
diff --git a/applets/applets.c b/applets/applets.c
index 1a2741940..a6e6598cc 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -223,12 +223,14 @@ void check_suid ( struct BB_applet *applet )
223 return; 223 return;
224 } 224 }
225 else { 225 else {
226#ifndef CONFIG_FEATURE_SUID_CONFIG_QUIET
226 static int onetime = 0; 227 static int onetime = 0;
227 228
228 if ( !onetime ) { 229 if ( !onetime ) {
229 onetime = 1; 230 onetime = 1;
230 fprintf ( stderr, "Using fallback suid method\n" ); 231 fprintf ( stderr, "Using fallback suid method\n" );
231 } 232 }
233#endif
232 } 234 }
233#endif 235#endif
234 236
diff --git a/sysdeps/linux/config.in b/sysdeps/linux/config.in
index adcc77089..d799c94ea 100644
--- a/sysdeps/linux/config.in
+++ b/sysdeps/linux/config.in
@@ -20,6 +20,9 @@ bool 'Support for SUID/SGID handling' CONFIG_FEATURE_SUID
20if [ "$CONFIG_FEATURE_SUID" = "y" ]; then 20if [ "$CONFIG_FEATURE_SUID" = "y" ]; then
21 bool ' Runtime configuration via /etc/busybox.conf' CONFIG_FEATURE_SUID_CONFIG 21 bool ' Runtime configuration via /etc/busybox.conf' CONFIG_FEATURE_SUID_CONFIG
22fi 22fi
23if [ "$CONFIG_FEATURE_SUID_CONFIG" = "y" ]; then
24 bool ' Suppress message if config file is not readable' CONFIG_FEATURE_SUID_CONFIG_QUIET
25fi
23endmenu 26endmenu
24 27
25source archival/config.in 28source archival/config.in