Ticket #88: avahi-invalid_arg.patch
| File avahi-invalid_arg.patch, 4.1 KB (added by tedp, 5 years ago) |
|---|
-
avahi-utils/avahi-resolve.c
186 186 c->proto = AVAHI_PROTO_UNSPEC; 187 187 c->verbose = 0; 188 188 189 opterr = 0;190 189 while ((o = getopt_long(argc, argv, "hVnav46", long_options, NULL)) >= 0) { 191 190 192 191 switch(o) { … … 212 211 c->proto = AVAHI_PROTO_INET6; 213 212 break; 214 213 default: 215 fprintf(stderr, "Invalid command line argument: %c\n", o);216 214 return -1; 217 215 } 218 216 } -
avahi-utils/avahi-browse.c
638 638 c->no_db_lookup = 0; 639 639 #endif 640 640 641 opterr = 0;642 641 while ((o = getopt_long(argc, argv, "hVd:avtclrDf" 643 642 #if defined(HAVE_GDBM) || defined(HAVE_DBM) 644 643 "k" … … 686 685 break; 687 686 #endif 688 687 default: 689 fprintf(stderr, "Invalid command line argument: %c\n", o);690 688 return -1; 691 689 } 692 690 } -
avahi-utils/avahi-set-host-name.c
93 93 c->command = COMMAND_UNSPEC; 94 94 c->verbose = 0; 95 95 96 opterr = 0;97 96 while ((o = getopt_long(argc, argv, "hVv", long_options, NULL)) >= 0) { 98 97 99 98 switch(o) { … … 107 106 c->verbose = 1; 108 107 break; 109 108 default: 110 fprintf(stderr, "Invalid command line argument: %c\n", o);111 109 return -1; 112 110 } 113 111 } -
avahi-utils/avahi-publish.c
256 256 c->port = 0; 257 257 c->txt = c->subtypes = NULL; 258 258 259 opterr = 0;260 259 while ((o = getopt_long(argc, argv, "hVsavd:H:f", long_options, NULL)) >= 0) { 261 260 262 261 switch(o) { … … 290 289 c->subtypes = avahi_string_list_add(c->subtypes, optarg); 291 290 break; 292 291 default: 293 fprintf(stderr, "Invalid command line argument: %c\n", o);294 292 return -1; 295 293 } 296 294 } -
avahi-daemon/main.c
379 379 380 380 assert(c); 381 381 382 opterr = 0;383 382 while ((o = getopt_long(argc, argv, "hDkVf:rcs", long_options, NULL)) >= 0) { 384 383 385 384 switch(o) { … … 426 425 c->debug = 1; 427 426 break; 428 427 default: 429 fprintf(stderr, "Invalid command line argument: %c\n", o);430 428 return -1; 431 429 } 432 430 } -
avahi-autoipd/main.c
1200 1200 { NULL, 0, NULL, 0 } 1201 1201 }; 1202 1202 1203 opterr = 0;1204 1203 while ((c = getopt_long(argc, argv, "hDskrcVS:w", long_options, NULL)) >= 0) { 1205 1204 1206 1205 switch(c) { … … 1259 1258 #endif 1260 1259 1261 1260 default: 1262 fprintf(stderr, "Invalid command line argument: %c\n", c);1263 1261 return -1; 1264 1262 } 1265 1263 } -
avahi-dnsconfd/main.c
396 396 { NULL, 0, NULL, 0 } 397 397 }; 398 398 399 opterr = 0;400 399 while ((c = getopt_long(argc, argv, "hDkVrc", long_options, NULL)) >= 0) { 401 400 402 401 switch(c) { … … 419 418 command = DAEMON_CHECK; 420 419 break; 421 420 default: 422 fprintf(stderr, "Invalid command line argument: %c\n", c);423 421 return -1; 424 422 } 425 423 }
