[master] 3a06210 Also remove directory if compilation failed
Federico G. Schwindt
fgsch at lodoss.net
Wed Apr 20 09:46:05 CEST 2016
commit 3a06210b095d09e3070bfaf1aa41bb15cc0f80e0
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Tue Apr 19 23:21:45 2016 +0100
Also remove directory if compilation failed
diff --git a/bin/varnishd/mgt/mgt_vcc.c b/bin/varnishd/mgt/mgt_vcc.c
index 996985e..c0f8ed2 100644
--- a/bin/varnishd/mgt/mgt_vcc.c
+++ b/bin/varnishd/mgt/mgt_vcc.c
@@ -299,8 +299,7 @@ mgt_VccCompile(struct cli *cli, const char *vclname, const char *vclsrc,
if (status || C_flag) {
(void)unlink(vp.libfile);
free(vp.libfile);
- if (C_flag)
- AZ(rmdir(vp.dir));
+ AZ(rmdir(vp.dir));
free(vp.dir);
if (status) {
VCLI_Out(cli, "VCL compilation failed");
More information about the varnish-commit
mailing list