[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.21.2.2 and 1.21.2.3

version 1.21.2.2, 2002/05/17 00:03:24 version 1.21.2.3, 2002/06/26 18:22:36
Line 47 
Line 47 
 connect_to_server(char *path, char **args, int *in, int *out, pid_t *sshpid)  connect_to_server(char *path, char **args, int *in, int *out, pid_t *sshpid)
 {  {
         int c_in, c_out;          int c_in, c_out;
   
 #ifdef USE_PIPES  #ifdef USE_PIPES
         int pin[2], pout[2];          int pin[2], pout[2];
   
         if ((pipe(pin) == -1) || (pipe(pout) == -1))          if ((pipe(pin) == -1) || (pipe(pout) == -1))
                 fatal("pipe: %s", strerror(errno));                  fatal("pipe: %s", strerror(errno));
         *in = pin[0];          *in = pin[0];
Line 57 
Line 59 
         c_out = pin[1];          c_out = pin[1];
 #else /* USE_PIPES */  #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];

Legend:
Removed from v.1.21.2.2  
changed lines
  Added in v.1.21.2.3