212 |
} |
} |
213 |
|
|
214 |
if (do_continue) { |
if (do_continue) { |
215 |
sprintf(buf, "REST %"OFF_FMT"d", beg_range); |
sprintf(buf, "REST %"OFF_FMT"u", beg_range); |
216 |
if (ftpcmd(buf, NULL) != 350) { |
if (ftpcmd(buf, NULL) != 350) { |
217 |
do_continue = 0; |
do_continue = 0; |
218 |
} |
} |
306 |
#if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS |
#if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS |
307 |
applet_long_options = ftpgetput_longopts; |
applet_long_options = ftpgetput_longopts; |
308 |
#endif |
#endif |
309 |
opt_complementary = "=3:vv:cc"; /* must have 3 params; -v and -c count */ |
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, |
opt = getopt32(argv, "cvu:p:P:", &user, &password, &port, |
311 |
&verbose_flag, &do_continue); |
&verbose_flag, &do_continue); |
312 |
argv += optind; |
argv += optind; |
321 |
} |
} |
322 |
|
|
323 |
ftp_login(); |
ftp_login(); |
324 |
return ftp_action(argv[1], argv[2]); |
return ftp_action(argv[1], argv[2] ? argv[2] : argv[1]); |
325 |
} |
} |