[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/main.c between version 1.81 and 1.82

version 1.81, 2010/06/29 23:12:33 version 1.82, 2012/04/30 13:41:26
Line 114 
Line 114 
         hist = NULL;          hist = NULL;
         cookiefile = NULL;          cookiefile = NULL;
         resume = 0;          resume = 0;
           srcaddr = NULL;
         marg_sl = sl_init();          marg_sl = sl_init();
 #endif /* !SMALL */  #endif /* !SMALL */
         mark = HASHBYTES;          mark = HASHBYTES;
Line 174 
Line 175 
         cookiefile = getenv("http_cookies");          cookiefile = getenv("http_cookies");
 #endif /* !SMALL */  #endif /* !SMALL */
   
         while ((ch = getopt(argc, argv, "46AaCc:dEegik:mno:pP:r:tvV")) != -1) {          while ((ch = getopt(argc, argv, "46AaCc:dEegik:mno:pP:r:s:tvV")) != -1) {
                 switch (ch) {                  switch (ch) {
                 case '4':                  case '4':
                         family = PF_INET;                          family = PF_INET;
Line 275 
Line 276 
                         }                          }
                         break;                          break;
   
                   case 's':
   #ifndef SMALL
                           srcaddr = optarg;
   #endif /* !SMALL */
                           break;
   
                 case 't':                  case 't':
                         trace = 1;                          trace = 1;
                         break;                          break;
Line 756 
Line 763 
             "       %s [-C] "              "       %s [-C] "
 #endif /* !SMALL */  #endif /* !SMALL */
             "[-o output] "              "[-o output] "
   #ifndef SMALL
               "[-s srcaddr] "
   #endif /* !SMALL */
             "ftp://[user:password@]host[:port]/file[/] ...\n"              "ftp://[user:password@]host[:port]/file[/] ...\n"
             "       %s "              "       %s "
 #ifndef SMALL  #ifndef SMALL
             "[-C] [-c cookie] "              "[-C] [-c cookie] "
 #endif /* !SMALL */  #endif /* !SMALL */
             "[-o output] "              "[-o output] "
   #ifndef SMALL
               "[-s srcaddr] "
   #endif /* !SMALL */
             "http://host[:port]/file ...\n"              "http://host[:port]/file ...\n"
 #ifndef SMALL  #ifndef SMALL
             "       %s [-C] [-c cookie] [-o output] "              "       %s [-C] [-c cookie] [-o output] [-s srcaddr] "
             "https://host[:port]/file ...\n"              "https://host[:port]/file ...\n"
 #endif /* !SMALL */  #endif /* !SMALL */
             "       %s "              "       %s "
Line 772 
Line 785 
             "[-C] "              "[-C] "
 #endif /* !SMALL */  #endif /* !SMALL */
             "[-o output] "              "[-o output] "
   #ifndef SMALL
               "[-s srcaddr] "
   #endif /* !SMALL */
             "file:file ...\n"              "file:file ...\n"
             "       %s "              "       %s "
 #ifndef SMALL  #ifndef SMALL
             "[-C] "              "[-C] "
 #endif /* !SMALL */  #endif /* !SMALL */
             "[-o output] host:/file[/] ...\n",              "[-o output] "
   #ifndef SMALL
               "[-s srcaddr] "
   #endif /* !SMALL */
               "host:/file[/] ...\n",
 #ifndef SMALL  #ifndef SMALL
             __progname, __progname, __progname, __progname, __progname,              __progname, __progname, __progname, __progname, __progname,
             __progname);              __progname);

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82