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

This commit is contained in:
Denis Vlasenko 2007-04-16 20:55:27 +00:00
parent bc9d7d788b
commit 17e3c34aa7

View File

@ -54,7 +54,7 @@ const char *applet_name ATTRIBUTE_EXTERNALLY_VISIBLE;
bool re_execed; bool re_execed;
#endif #endif
static uid_t ruid; /* real uid */ USE_FEATURE_SUID(static uid_t ruid;) /* real uid */
#if ENABLE_FEATURE_SUID_CONFIG #if ENABLE_FEATURE_SUID_CONFIG
@ -329,7 +329,7 @@ static void parse_config_file(void)
#else #else
static inline void parse_config_file(void) static inline void parse_config_file(void)
{ {
ruid = getuid(); USE_FEATURE_SUID(ruid = getuid();)
} }
#endif /* FEATURE_SUID_CONFIG */ #endif /* FEATURE_SUID_CONFIG */