diff options
author | Tim van der Molen <tim@cvs.openbsd.org> | 2015-12-01 20:25:17 +0000 |
---|---|---|
committer | Tim van der Molen <tim@cvs.openbsd.org> | 2015-12-01 20:25:17 +0000 |
commit | f753f19d845920e26f202d8e2285790924166e74 (patch) | |
tree | 89af00d4759084061687ea9bb322c5e00ea97900 /libexec | |
parent | ab323e14eaaf7bed76ea5586e2edb0e0e2d41bd4 (diff) |
Remove superfluous check; "Of course" deraadt@
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rpc.rstatd/rstatd.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libexec/rpc.rstatd/rstatd.c b/libexec/rpc.rstatd/rstatd.c index 2985773a75d..6024f77a286 100644 --- a/libexec/rpc.rstatd/rstatd.c +++ b/libexec/rpc.rstatd/rstatd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rstatd.c,v 1.28 2015/10/05 15:50:01 millert Exp $ */ +/* $OpenBSD: rstatd.c,v 1.29 2015/12/01 20:25:16 tim Exp $ */ /*- * Copyright (c) 1993, John Brezak @@ -80,13 +80,11 @@ main(int argc, char *argv[]) } chdir("/"); - if (pw) { - setgroups(1, &pw->pw_gid); - setegid(pw->pw_gid); - setgid(pw->pw_gid); - seteuid(pw->pw_uid); - setuid(pw->pw_uid); - } + setgroups(1, &pw->pw_gid); + setegid(pw->pw_gid); + setgid(pw->pw_gid); + seteuid(pw->pw_uid); + setuid(pw->pw_uid); if (argc == 2) closedown = strtonum(argv[1], 1, INT_MAX, NULL); |