--- trunk/mkinitrd-magellan/busybox/networking/ftpgetput.c 2010/04/29 20:38:48 983 +++ trunk/mkinitrd-magellan/busybox/networking/ftpgetput.c 2010/05/30 11:32:42 984 @@ -212,7 +212,7 @@ } if (do_continue) { - sprintf(buf, "REST %"OFF_FMT"d", beg_range); + sprintf(buf, "REST %"OFF_FMT"u", beg_range); if (ftpcmd(buf, NULL) != 350) { do_continue = 0; } @@ -306,7 +306,7 @@ #if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS applet_long_options = ftpgetput_longopts; #endif - 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 */ opt = getopt32(argv, "cvu:p:P:", &user, &password, &port, &verbose_flag, &do_continue); argv += optind; @@ -321,5 +321,5 @@ } ftp_login(); - return ftp_action(argv[1], argv[2]); + return ftp_action(argv[1], argv[2] ? argv[2] : argv[1]); }