[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.143 and 1.144

version 1.143, 2023/11/30 14:52:00 version 1.144, 2023/12/12 22:00:43
Line 502 
Line 502 
   
                 case 'o':                  case 'o':
                         outfile = optarg;                          outfile = optarg;
                         if (*outfile == '\0') {                          pipeout = strcmp(outfile, "-") == 0;
                                 pipeout = 0;                          ttyout = pipeout ? stderr : stdout;
                                 outfile = NULL;  
                                 ttyout = stdout;  
                         } else {  
                                 pipeout = strcmp(outfile, "-") == 0;  
                                 ttyout = pipeout ? stderr : stdout;  
                         }  
                         break;                          break;
   
                 case 'p':                  case 'p':

Legend:
Removed from v.1.143  
changed lines
  Added in v.1.144