diff options
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 1fc20364f..2cce07ac2 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -361,11 +361,12 @@ int ftpgetput_main(int argc UNUSED_PARAM, char **argv) | |||
361 | /* | 361 | /* |
362 | * Decipher the command line | 362 | * Decipher the command line |
363 | */ | 363 | */ |
364 | opt_complementary = "-2:vv:cc"; /* must have 2 to 3 params; -v and -c count */ | 364 | /* must have 2 to 3 params; -v and -c count */ |
365 | #define OPTSTRING "^cvu:p:P:" "\0" "-2:?3:vv:cc" | ||
365 | #if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS | 366 | #if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS |
366 | getopt32long(argv, "cvu:p:P:", ftpgetput_longopts, | 367 | getopt32long(argv, OPTSTRING, ftpgetput_longopts, |
367 | #else | 368 | #else |
368 | getopt32(argv, "cvu:p:P:", | 369 | getopt32(argv, OPTSTRING, |
369 | #endif | 370 | #endif |
370 | &user, &password, &port, &verbose_flag, &do_continue | 371 | &user, &password, &port, &verbose_flag, &do_continue |
371 | ); | 372 | ); |