[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.122 and 1.123

version 1.122, 2019/05/12 20:58:19 version 1.123, 2019/05/12 21:30:48
Line 303 
Line 303 
   
         imsg_init(&child_ibuf, sock);          imsg_init(&child_ibuf, sock);
         tostdout = oarg && (strcmp(oarg, "-") == 0);          tostdout = oarg && (strcmp(oarg, "-") == 0);
           if (tostdout)
                   msgout = stderr;
         if (resume && tostdout)          if (resume && tostdout)
                 errx(1, "can't append to stdout");                  errx(1, "can't append to stdout");
   
Line 330 
Line 332 
   
                 if (tostdout) {                  if (tostdout) {
                         dst_fp = stdout;                          dst_fp = stdout;
                         msgout = stderr;  
                 } else if ((dst_fp = fdopen(fd, "w")) == NULL)                  } else if ((dst_fp = fdopen(fd, "w")) == NULL)
                         err(1, "%s: fdopen", __func__);                          err(1, "%s: fdopen", __func__);
   

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.123