projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc9d7d7
)
applet.c: ruid is needed only if FEATURE_SUID=y
author
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 16 Apr 2007 20:55:27 +0000
(20:55 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 16 Apr 2007 20:55:27 +0000
(20:55 -0000)
applets/applets.c
patch
|
blob
|
history
diff --git
a/applets/applets.c
b/applets/applets.c
index e0952af473296e55945f38298f0186ac375cecc7..d7e63eb1e0c329afa1a58ab24baa714b11f9ff19 100644
(file)
--- 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 */