[master] c04662a Check fchown() return values
Poul-Henning Kamp
phk at FreeBSD.org
Fri Dec 20 13:38:47 CET 2013
commit c04662aea3d9e8f6c1398db9ff3df57df6f345c4
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Dec 20 12:38:20 2013 +0000
Check fchown() return values
diff --git a/bin/varnishd/mgt/mgt_vcc.c b/bin/varnishd/mgt/mgt_vcc.c
index d3e81de..bc7b4fe 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);
}
- (void)fchown(sfd, mgt_param.uid, mgt_param.gid);
+ AZ(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);
}
- (void)fchown(i, mgt_param.uid, mgt_param.gid);
+ AZ(fchown(i, mgt_param.uid, mgt_param.gid));
AZ(close(i));
/* Build the C-compiler command line */
More information about the varnish-commit
mailing list