diff options
author | Alex Dowad <alexinbeijing@gmail.com> | 2014-04-17 21:48:50 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-04-25 10:21:03 +0300 |
commit | bc510426cc7981cafa2c9a350f56d2489000a61d (patch) | |
tree | a148e69af5fe5bfc021e0c20cbbdb7076a216b70 /src/squark-filter.c | |
parent | 4f30890daa5f982a43bbe41e89129e27578cae81 (diff) | |
download | squark-bc510426cc7981cafa2c9a350f56d2489000a61d.tar.bz2 squark-bc510426cc7981cafa2c9a350f56d2489000a61d.tar.xz |
squark-filter, squark-auth-ip: filter DB file path can be set using -d option
Diffstat (limited to 'src/squark-filter.c')
-rw-r--r-- | src/squark-filter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/squark-filter.c b/src/squark-filter.c index 7aaaca5..11b9de3 100644 --- a/src/squark-filter.c +++ b/src/squark-filter.c @@ -462,7 +462,7 @@ int main(int argc, char **argv) reporting_init("squark-filter"); - while ((opt = getopt(argc, argv, "Vc:sqv::")) != -1) { + while ((opt = getopt(argc, argv, "Vc:d:sqv::")) != -1) { switch (opt) { case 'V': fprintf(stderr, "squark-filter %s\n", squark_version); @@ -470,6 +470,9 @@ int main(int argc, char **argv) case 'c': squark_config = optarg; break; + case 'd': + squark_dbname = optarg; + break; case 's': reporting_use_syslog(1); break; |