[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.82 and 1.83

version 1.82, 2001/01/15 21:40:10 version 1.83, 2001/01/19 15:55:11
Line 53 
Line 53 
 #include "readconf.h"  #include "readconf.h"
 #include "uidswap.h"  #include "uidswap.h"
   
   #include "ssh1.h"
 #include "ssh2.h"  #include "ssh2.h"
 #include "compat.h"  #include "compat.h"
 #include "channels.h"  #include "channels.h"
 #include "key.h"  #include "key.h"
 #include "authfd.h"  #include "authfd.h"
 #include "authfile.h"  #include "authfile.h"
   #include "pathnames.h"
 #include "clientloop.h"  #include "clientloop.h"
   
 extern char *__progname;  extern char *__progname;
Line 531 
Line 533 
         log_init(av[0], options.log_level, SYSLOG_FACILITY_USER, 0);          log_init(av[0], options.log_level, SYSLOG_FACILITY_USER, 0);
   
         /* Read per-user configuration file. */          /* Read per-user configuration file. */
         snprintf(buf, sizeof buf, "%.100s/%.100s", pw->pw_dir, SSH_USER_CONFFILE);          snprintf(buf, sizeof buf, "%.100s/%.100s", pw->pw_dir, _PATH_SSH_USER_CONFFILE);
         read_config_file(buf, host, &options);          read_config_file(buf, host, &options);
   
         /* Read systemwide configuration file. */          /* Read systemwide configuration file. */
         read_config_file(HOST_CONFIG_FILE, host, &options);          read_config_file(_PATH_HOST_CONFIG_FILE, host, &options);
   
         /* Fill configuration defaults. */          /* Fill configuration defaults. */
         fill_default_options(&options);          fill_default_options(&options);
Line 595 
Line 597 
                 host_private_key = RSA_new();                  host_private_key = RSA_new();
                 k.type = KEY_RSA1;                  k.type = KEY_RSA1;
                 k.rsa = host_private_key;                  k.rsa = host_private_key;
                 if (load_private_key(HOST_KEY_FILE, "", &k, NULL))                  if (load_private_key(_PATH_HOST_KEY_FILE, "", &k, NULL))
                         host_private_key_loaded = 1;                          host_private_key_loaded = 1;
         }          }
         /*          /*
Line 619 
Line 621 
          * Now that we are back to our own permissions, create ~/.ssh           * Now that we are back to our own permissions, create ~/.ssh
          * directory if it doesn\'t already exist.           * directory if it doesn\'t already exist.
          */           */
         snprintf(buf, sizeof buf, "%.100s/%.100s", pw->pw_dir, SSH_USER_DIR);          snprintf(buf, sizeof buf, "%.100s/%.100s", pw->pw_dir, _PATH_SSH_USER_DIR);
         if (stat(buf, &st) < 0)          if (stat(buf, &st) < 0)
                 if (mkdir(buf, 0700) < 0)                  if (mkdir(buf, 0700) < 0)
                         error("Could not create directory '%.200s'.", buf);                          error("Could not create directory '%.200s'.", buf);

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83