[BusyBox-cvs] busybox/applets applets.c,1.21,1.22

Manuel Novoa III mjn3 at busybox.net
Tue Feb 17 10:16:23 UTC 2004


Update of /var/cvs/busybox/applets
In directory nail:/tmp/cvs-serv24699

Modified Files:
	applets.c 
Log Message:
Patch from Florian Schirmer <jolt at tuxbox.org>.  When I rewrote the parser,
I overlooked the case of someone wanting to use a valid but empty suid
config file.


Index: applets.c
===================================================================
RCS file: /var/cvs/busybox/applets/applets.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- applets.c	1 Feb 2004 10:03:05 -0000	1.21
+++ applets.c	17 Feb 2004 10:16:21 -0000	1.22
@@ -71,6 +71,7 @@
 };
 
 static struct BB_suid_config *suid_config;
+static int suid_cfg_readable;
 
 #endif /* CONFIG_FEATURE_SUID_CONFIG */
 
@@ -192,7 +193,7 @@
   uid_t rgid = getgid ();
 
 #ifdef CONFIG_FEATURE_SUID_CONFIG
-  if (suid_config) {
+  if (suid_cfg_readable) {
 	struct BB_suid_config *sct;
 
 	for (sct = suid_config; sct; sct = sct->m_next) {
@@ -315,6 +316,7 @@
 		return;
 	}
 
+	suid_cfg_readable = 1;
 	sct_head = NULL;
 	section = lc = 0;
 




More information about the busybox-cvs mailing list