projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
collectd: Abort if any non-options are left over after command-line parsing.
[collectd.git]
/
src
/
collectd.c
diff --git
a/src/collectd.c
b/src/collectd.c
index
a3f63b4
..
e8aaed2
100644
(file)
--- a/
src/collectd.c
+++ b/
src/collectd.c
@@
-443,6
+443,9
@@
int main (int argc, char **argv)
} /* switch (c) */
} /* while (1) */
+ if (optind < argc)
+ exit_usage ();
+
/*
* Read options from the config file, the environment and the command
* line (in that order, with later options overwriting previous ones in