diff options
author | Denis Vlasenko | 2006-10-16 22:39:51 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-16 22:39:51 +0000 |
commit | 13c5a6832f9ad7fc5448de1c2f977e575c4b2dcb (patch) | |
tree | 7fc88766e8b5a39f88d7d54f41a62c219b791c94 /applets/applets.c | |
parent | f46be091060ad48b124a99d4a996405e85c63a33 (diff) | |
download | busybox-13c5a6832f9ad7fc5448de1c2f977e575c4b2dcb.zip busybox-13c5a6832f9ad7fc5448de1c2f977e575c4b2dcb.tar.gz |
mount: support user mounts if CONFIG_DESKTOP
Diffstat (limited to 'applets/applets.c')
-rw-r--r-- | applets/applets.c | 10 |
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 } |