From f2462d139f7709bc3b678df0bcf124b8401fed1a Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Fri, 20 Dec 2013 12:41:07 +0000 Subject: [PATCH] Oops, forgot we could be running as non-root there. --- bin/varnishd/mgt/mgt_vcc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/varnishd/mgt/mgt_vcc.c b/bin/varnishd/mgt/mgt_vcc.c index bc7b4fe003f..d3e81de70b1 100644 --- a/bin/varnishd/mgt/mgt_vcc.c +++ b/bin/varnishd/mgt/mgt_vcc.c @@ -244,7 +244,7 @@ mgt_run_cc(const char *vcl, struct vsb *sb, int C_flag) VSB_printf(sb, "Failed to create %s: %s", sf, strerror(errno)); return (NULL); } - AZ(fchown(sfd, mgt_param.uid, mgt_param.gid)); + (void)fchown(sfd, mgt_param.uid, mgt_param.gid); AZ(close(sfd)); @@ -279,7 +279,7 @@ mgt_run_cc(const char *vcl, struct vsb *sb, int C_flag) (void)unlink(sf); return (NULL); } - AZ(fchown(i, mgt_param.uid, mgt_param.gid)); + (void)fchown(i, mgt_param.uid, mgt_param.gid); AZ(close(i)); /* Build the C-compiler command line */