r1558 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Jun 25 11:46:30 CEST 2007


Author: phk
Date: 2007-06-25 11:46:30 +0200 (Mon, 25 Jun 2007)
New Revision: 1558

Modified:
   trunk/varnish-cache/bin/varnishd/varnishd.c
Log:
Make sure that -F and -d are exclusive.


Modified: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c	2007-06-25 09:44:54 UTC (rev 1557)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c	2007-06-25 09:46:30 UTC (rev 1558)
@@ -506,6 +506,11 @@
 		exit(1);
 	}
 
+	if (d_flag && F_flag) {
+		fprintf(stderr, "Only one of -d or -F can be specified\n");
+		usage();
+	}
+
 	if (b_arg != NULL && f_arg != NULL) {
 		fprintf(stderr, "Only one of -b or -f can be specified\n");
 		usage();




More information about the varnish-commit mailing list