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

Diff for /src/usr.bin/ssh/sftp.c between version 1.80 and 1.81

version 1.80, 2006/03/27 23:15:46 version 1.81, 2006/04/20 21:53:44
Line 1361 
Line 1361 
 {  {
         int c_in, c_out;          int c_in, c_out;
   
 #ifdef USE_PIPES  
         int pin[2], pout[2];  
   
         if ((pipe(pin) == -1) || (pipe(pout) == -1))  
                 fatal("pipe: %s", strerror(errno));  
         *in = pin[0];  
         *out = pout[1];  
         c_in = pout[0];  
         c_out = pin[1];  
 #else /* USE_PIPES */  
         int inout[2];          int inout[2];
   
         if (socketpair(AF_UNIX, SOCK_STREAM, 0, inout) == -1)          if (socketpair(AF_UNIX, SOCK_STREAM, 0, inout) == -1)
                 fatal("socketpair: %s", strerror(errno));                  fatal("socketpair: %s", strerror(errno));
         *in = *out = inout[0];          *in = *out = inout[0];
         c_in = c_out = inout[1];          c_in = c_out = inout[1];
 #endif /* USE_PIPES */  
   
         if ((sshpid = fork()) == -1)          if ((sshpid = fork()) == -1)
                 fatal("fork: %s", strerror(errno));                  fatal("fork: %s", strerror(errno));

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