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

Diff for /src/usr.bin/ssh/ssh.c between version 1.12 and 1.13

version 1.12, 1999/09/29 21:15:54 version 1.13, 1999/09/30 04:10:28
Line 131 
Line 131 
 void  void
 rsh_connect(char *host, char *user, Buffer *command)  rsh_connect(char *host, char *user, Buffer *command)
 {  {
 #ifdef RSH_PATH  
   char *args[10];    char *args[10];
   int i;    int i;
   
   log("Using rsh.  WARNING: Connection will not be encrypted.");    log("Using rsh.  WARNING: Connection will not be encrypted.");
   /* Build argument list for rsh. */    /* Build argument list for rsh. */
   i = 0;    i = 0;
   args[i++] = RSH_PATH;    args[i++] = _PATH_RSH;
   args[i++] = host;    /* may have to come after user on some systems */    args[i++] = host;    /* may have to come after user on some systems */
   if (user)    if (user)
     {      {
Line 161 
Line 160 
         }          }
       fprintf(stderr, "\n");        fprintf(stderr, "\n");
     }      }
   execv(RSH_PATH, args);    execv(_PATH_RSH, args);
   perror(RSH_PATH);    perror(_PATH_RSH);
   exit(1);    exit(1);
 #else /* RSH_PATH */  
   fatal("Rsh not available.");  
 #endif /* RSH_PATH */  
 }  }
   
 /* Main program for the ssh client. */  /* Main program for the ssh client. */

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13