Răsfoiți Sursa

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 3 ani în urmă
părinte
comite
66cd57c768
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;