[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.76 and 1.77

version 1.76, 2000/12/12 22:30:01 version 1.77, 2000/12/12 23:11:48
Line 547 
Line 547 
   
         /* Disable rhosts authentication if not running as root. */          /* Disable rhosts authentication if not running as root. */
         if (original_effective_uid != 0 || !options.use_privileged_port) {          if (original_effective_uid != 0 || !options.use_privileged_port) {
                 debug("Rhosts Authentication methods disabled, "                  debug("Rhosts Authentication disabled, "
                     "originating port will not be trusted.");                      "originating port will not be trusted.");
                 options.rhosts_authentication = 0;                  options.rhosts_authentication = 0;
                 options.rhosts_rsa_authentication = 0;  
         }          }
         /*          /*
          * If using rsh has been selected, exec it now (without trying           * If using rsh has been selected, exec it now (without trying
Line 573 
Line 572 
         /* Restore our superuser privileges. */          /* Restore our superuser privileges. */
         restore_uid();          restore_uid();
   
         /*          /* Open a connection to the remote host. */
          * Open a connection to the remote host.  This needs root privileges  
          * if rhosts_{rsa_}authentication is enabled.  
          */  
   
         ok = ssh_connect(host, &hostaddr, options.port,          ok = ssh_connect(host, &hostaddr, options.port,
                          options.connection_attempts,              options.connection_attempts,
                          !options.rhosts_authentication &&              original_effective_uid != 0 || !options.use_privileged_port,
                          !options.rhosts_rsa_authentication,              original_real_uid,
                          original_real_uid,              options.proxy_command);
                          options.proxy_command);  
   
         /*          /*
          * If we successfully made the connection, load the host private key           * If we successfully made the connection, load the host private key

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77