summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--process.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/process.c b/process.c
index 4654702..bc2a86d 100644
--- a/process.c
+++ b/process.c
@@ -3352,10 +3352,8 @@ has_privilege(void)
return 1;
}
#else
- {
- ruid = getuid();
- euid = geteuid();
- }
+ ruid = getuid();
+ euid = geteuid();
#endif
if (euid == 0 || euid != ruid)
@@ -3372,10 +3370,8 @@ has_privilege(void)
return 1;
}
#else
- {
- rgid = getgid();
- egid = getegid();
- }
+ rgid = getgid();
+ egid = getegid();
#endif
if (egid == 0 || egid != rgid)