summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-16 22:39:51 +0000
committerDenis Vlasenko2006-10-16 22:39:51 +0000
commit13c5a6832f9ad7fc5448de1c2f977e575c4b2dcb (patch)
tree7fc88766e8b5a39f88d7d54f41a62c219b791c94 /applets
parentf46be091060ad48b124a99d4a996405e85c63a33 (diff)
downloadbusybox-13c5a6832f9ad7fc5448de1c2f977e575c4b2dcb.zip
busybox-13c5a6832f9ad7fc5448de1c2f977e575c4b2dcb.tar.gz
mount: support user mounts if CONFIG_DESKTOP
Diffstat (limited to 'applets')
-rw-r--r--applets/applets.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/applets/applets.c b/applets/applets.c
index 5d8b808..00102da 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -316,10 +316,10 @@ static void parse_config_file(void)
#endif /* CONFIG_FEATURE_SUID_CONFIG */
#ifdef CONFIG_FEATURE_SUID
-static void check_suid (struct BB_applet *applet)
+static void check_suid(struct BB_applet *applet)
{
- uid_t ruid = getuid (); /* real [ug]id */
- uid_t rgid = getgid ();
+ uid_t ruid = getuid(); /* real [ug]id */
+ uid_t rgid = getgid();
#ifdef CONFIG_FEATURE_SUID_CONFIG
if (suid_cfg_readable) {
@@ -334,7 +334,7 @@ static void check_suid (struct BB_applet *applet)
if (sct->m_uid == ruid) /* same uid */
m >>= 6;
- else if ((sct->m_gid == rgid) || ingroup (ruid, sct->m_gid)) /* same group / in group */
+ else if ((sct->m_gid == rgid) || ingroup(ruid, sct->m_gid)) /* same group / in group */
m >>= 3;
if (!(m & S_IXOTH)) /* is x bit not set ? */
@@ -358,7 +358,7 @@ static void check_suid (struct BB_applet *applet)
if (!onetime) {
onetime = 1;
- fprintf (stderr, "Using fallback suid method\n");
+ fprintf(stderr, "Using fallback suid method\n");
}
#endif
}