commit e9ff73ec2b6707d6e068d6ac77c056f152e901cd
parent cabcac9cc09199082f565952bcbb14de75c07acf
Author: sin <sin@2f30.org>
Date: Fri, 8 Apr 2016 10:08:32 +0100
style fix
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/stun.c b/stun.c
@@ -241,8 +241,7 @@ revokeprivs(void)
{
struct passwd *pw;
- pw = getpwnam(NOPRIVUSER);
- if (!pw)
+ if (!(pw = getpwnam(NOPRIVUSER)))
logerr("no %s user", NOPRIVUSER);
if (setgroups(1, &pw->pw_gid) < 0 ||
setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) < 0 ||