[prev in list] [next in list] [prev in thread] [next in thread]
List: varnish-commit
Subject: [master] f2462d1 Oops, forgot we could be running as non-root there.
From: Poul-Henning Kamp <phk () FreeBSD ! org>
Date: 2013-12-20 12:41:19
Message-ID: E1VtzOJ-0006rG-Ij () project ! varnish-software ! com
[Download RAW message or body]
commit f2462d139f7709bc3b678df0bcf124b8401fed1a
Author: Poul-Henning Kamp <phk@FreeBSD.org>
Date: Fri Dec 20 12:41:07 2013 +0000
Oops, forgot we could be running as non-root there.
diff --git a/bin/varnishd/mgt/mgt_vcc.c b/bin/varnishd/mgt/mgt_vcc.c
index bc7b4fe..d3e81de 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 */
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic