Skip to content

Instantly share code, notes, and snippets.

@KristianLyng
Created January 25, 2010 11:55
Show Gist options
  • Save KristianLyng/285822 to your computer and use it in GitHub Desktop.
Save KristianLyng/285822 to your computer and use it in GitHub Desktop.
diff --git a/varnish-cache/bin/varnishncsa/varnishncsa.c b/varnish-cache/bin/varnishncsa/varnishncsa.c
index 4d54d4e..69662b4 100644
--- a/varnish-cache/bin/varnishncsa/varnishncsa.c
+++ b/varnish-cache/bin/varnishncsa/varnishncsa.c
@@ -553,6 +553,13 @@ main(int argc, char *argv[])
case 'w':
w_arg = optarg;
break;
+ case 'b':
+ fprintf(stderr, "-b is not valid for varnishncsa\n");
+ exit(1);
+ break;
+ case 'c':
+ /* XXX: Silently ignored: it's required anyway */
+ break;
default:
if (VSL_Arg(vd, c, optarg) > 0)
break;
@@ -560,6 +567,8 @@ main(int argc, char *argv[])
}
}
+ VSL_Arg(vd, 'c', optarg);
+
if (VSL_OpenLog(vd, n_arg))
exit(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment