summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/sss_debuglevel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/sss_debuglevel.c b/src/tools/sss_debuglevel.c
index 74a63eb2..72701386 100644
--- a/src/tools/sss_debuglevel.c
+++ b/src/tools/sss_debuglevel.c
@@ -97,6 +97,12 @@ int main(int argc, const char **argv)
ret, fini);
}
+ /* No more arguments expected. If something follows it is an error. */
+ if (poptGetArg(pc)) {
+ BAD_POPT_PARAMS(pc, _("Only one argument expected\n"),
+ ret, fini);
+ }
+
/* get config file */
if (pc_config_file) {
config_file = talloc_strdup(ctx, pc_config_file);