From: phk Date: Sun, 24 Jun 2007 10:17:29 +0000 (+0000) Subject: Roll a couple of layers off these asserts X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0e8cf0b5e10f761c871fc99462e26b209c7f3fd;p=varnish Roll a couple of layers off these asserts git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1545 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_child.c b/varnish-cache/bin/varnishd/mgt_child.c index 40690f13..a11e0bef 100644 --- a/varnish-cache/bin/varnishd/mgt_child.c +++ b/varnish-cache/bin/varnishd/mgt_child.c @@ -181,8 +181,8 @@ start_child(void) errx(1, "Could not fork child"); if (i == 0) { if (geteuid() == 0) { - XXXAZ(setgid(params->gid) == -1); - XXXAZ(setuid(params->uid) == -1); + XXXAZ(setgid(params->gid)); + XXXAZ(setuid(params->uid)); } /* Redirect stdin/out/err */