Ver código fonte

Fix: check_ldap now correctly handles the long option --hostname for -H

The undocumented --host has been changed to --hostname which is actually
mentioned in --help. Thanks to lgarrett (#3191388)
Matthias Eble 14 anos atrás
pai
commit
9978b3ca74
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      plugins/check_ldap.c

+ 1 - 1
plugins/check_ldap.c

@@ -247,7 +247,7 @@ process_arguments (int argc, char **argv)
 		{"help", no_argument, 0, 'h'},
 		{"help", no_argument, 0, 'h'},
 		{"version", no_argument, 0, 'V'},
 		{"version", no_argument, 0, 'V'},
 		{"timeout", required_argument, 0, 't'},
 		{"timeout", required_argument, 0, 't'},
-		{"host", required_argument, 0, 'H'},
+		{"hostname", required_argument, 0, 'H'},
 		{"base", required_argument, 0, 'b'},
 		{"base", required_argument, 0, 'b'},
 		{"attr", required_argument, 0, 'a'},
 		{"attr", required_argument, 0, 'a'},
 		{"bind", required_argument, 0, 'D'},
 		{"bind", required_argument, 0, 'D'},