Explorar el 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 hace 3 años
padre
commit
66cd57c768
Se han modificado 1 ficheros con 1 adiciones y 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;