aboutsummaryrefslogtreecommitdiff
path: root/networking/ftpgetput.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r--networking/ftpgetput.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index d39b73ebb..c0ecddac1 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -306,7 +306,7 @@ int ftpgetput_main(int argc UNUSED_PARAM, char **argv)
306#if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS 306#if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS
307 applet_long_options = ftpgetput_longopts; 307 applet_long_options = ftpgetput_longopts;
308#endif 308#endif
309 opt_complementary = "=3:vv:cc"; /* must have 3 params; -v and -c count */ 309 opt_complementary = "-2:vv:cc"; /* must have 2 to 3 params; -v and -c count */
310 opt = getopt32(argv, "cvu:p:P:", &user, &password, &port, 310 opt = getopt32(argv, "cvu:p:P:", &user, &password, &port,
311 &verbose_flag, &do_continue); 311 &verbose_flag, &do_continue);
312 argv += optind; 312 argv += optind;
@@ -321,5 +321,5 @@ int ftpgetput_main(int argc UNUSED_PARAM, char **argv)
321 } 321 }
322 322
323 ftp_login(); 323 ftp_login();
324 return ftp_action(argv[1], argv[2]); 324 return ftp_action(argv[1], argv[2] ? argv[2] : argv[1]);
325} 325}