Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/networking/ftpgetput.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 212  int ftp_receive(const char *local_path, Line 212  int ftp_receive(const char *local_path,
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   }   }
# Line 306  int ftpgetput_main(int argc UNUSED_PARAM Line 306  int ftpgetput_main(int argc UNUSED_PARAM
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;
# Line 321  int ftpgetput_main(int argc UNUSED_PARAM Line 321  int ftpgetput_main(int argc UNUSED_PARAM
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  }  }

Legend:
Removed from v.983  
changed lines
  Added in v.984