Explorar o código

check_ntp_time: Add -C and -W to allowed list of short options

They are referred to in the list of long options, work fine once allowed,
but were not actually allowed.
Arjen Zonneveld %!s(int64=3) %!d(string=hai) anos
pai
achega
66cd57c768
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/check_ntp_time.c

+ 1 - 1
plugins/check_ntp_time.c

@@ -490,7 +490,7 @@ int process_arguments(int argc, char **argv){
 		usage ("\n");
 
 	while (1) {
-		c = getopt_long (argc, argv, "Vhv46qw:c:t:H:p:o:d:", longopts, &option);
+		c = getopt_long (argc, argv, "Vhv46qw:c:t:H:p:o:d:C:W:", longopts, &option);
 		if (c == -1 || c == EOF || c == 1)
 			break;