svn commit: trunk/busybox/applets

vda at busybox.net vda at busybox.net
Mon Apr 16 20:55:28 UTC 2007


Author: vda
Date: 2007-04-16 13:55:27 -0700 (Mon, 16 Apr 2007)
New Revision: 18460

Log:
applet.c: ruid is needed only if FEATURE_SUID=y


Modified:
   trunk/busybox/applets/applets.c


Changeset:
Modified: trunk/busybox/applets/applets.c
===================================================================
--- trunk/busybox/applets/applets.c	2007-04-16 19:14:34 UTC (rev 18459)
+++ trunk/busybox/applets/applets.c	2007-04-16 20:55:27 UTC (rev 18460)
@@ -54,7 +54,7 @@
 bool re_execed;
 #endif
 
-static uid_t ruid;  /* real uid */
+USE_FEATURE_SUID(static uid_t ruid;)  /* real uid */
 
 #if ENABLE_FEATURE_SUID_CONFIG
 
@@ -329,7 +329,7 @@
 #else
 static inline void parse_config_file(void)
 {
-	ruid = getuid();
+	USE_FEATURE_SUID(ruid = getuid();)
 }
 #endif /* FEATURE_SUID_CONFIG */
 




More information about the busybox-cvs mailing list