aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-04-16 20:55:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-04-16 20:55:27 +0000
commit17e3c34aa7abe42aa604234235338e2b8087b8a0 (patch)
tree598a0dbee8ac7b2e2b0a2384b4735d8dd7f9f6f4
parentbc9d7d788b36808855ec6691abd98139247552d1 (diff)
downloadbusybox-17e3c34aa7abe42aa604234235338e2b8087b8a0.tar.gz
applet.c: ruid is needed only if FEATURE_SUID=y
-rw-r--r--applets/applets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/applets.c b/applets/applets.c
index e0952af47..d7e63eb1e 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -54,7 +54,7 @@ const char *applet_name ATTRIBUTE_EXTERNALLY_VISIBLE;
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 @@ static void parse_config_file(void)
#else
static inline void parse_config_file(void)
{
- ruid = getuid();
+ USE_FEATURE_SUID(ruid = getuid();)
}
#endif /* FEATURE_SUID_CONFIG */