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

Diff for /src/usr.bin/ftp/fetch.c between version 1.99 and 1.100

version 1.99, 2010/06/03 07:50:02 version 1.100, 2010/06/29 23:12:33
Line 259 
Line 259 
         }          }
   
 #ifndef SMALL  #ifndef SMALL
         if (resume && (strcmp(savefile, "-") == 0)) {          if (resume && pipeout) {
                 warnx("can't append to stdout");                  warnx("can't append to stdout");
                 goto cleanup_url_get;                  goto cleanup_url_get;
         }          }
Line 337 
Line 337 
                         filesize = st.st_size;                          filesize = st.st_size;
   
                 /* Open the output file.  */                  /* Open the output file.  */
                 if (strcmp(savefile, "-") != 0) {                  if (!pipeout) {
 #ifndef SMALL  #ifndef SMALL
                         if (resume)                          if (resume)
                                 out = open(savefile, O_CREAT | O_WRONLY |                                  out = open(savefile, O_CREAT | O_WRONLY |
Line 758 
Line 758 
         }          }
   
         /* Open the output file.  */          /* Open the output file.  */
         if (strcmp(savefile, "-") != 0) {          if (!pipeout) {
 #ifndef SMALL  #ifndef SMALL
                 if (resume)                  if (resume)
                         out = open(savefile, O_CREAT | O_WRONLY | O_APPEND,                          out = open(savefile, O_CREAT | O_WRONLY | O_APPEND,

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100