[master] 2881d76 Ignore rmdir() errors

Federico G. Schwindt fgsch at lodoss.net
Sun Jan 8 04:41:05 CET 2017


commit 2881d76fed1e67550cab2b346bdd61544b6dde8f
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Sun Jan 8 00:04:13 2017 +0000

    Ignore rmdir() errors
    
    In OSX with the Xcode toolchain DWARF debug symbol files (.dSYM) will be
    created when cc_command is executed (when -g is present) and the directory
    will not be empty.
    
    Prompted after b2bee0e3.

diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index a926401..b4766b2 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -874,7 +874,7 @@ main(int argc, char * const *argv)
 		mgt_vcl_startup(cli, b_arg, f_arg, vcl, C_flag);
 		if (C_flag) {
 			if (Cn_arg == n_arg)
-				AZ(rmdir(Cn_arg));
+				(void)rmdir(Cn_arg);
 			AZ(VSB_finish(cli->sb));
 			fprintf(stderr, "%s\n", VSB_data(cli->sb));
 			exit(cli->result == CLIS_OK ? 0 : 2);



More information about the varnish-commit mailing list