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

Diff for /src/usr.bin/ssh/session.c between version 1.32 and 1.33

version 1.32, 2000/08/31 22:05:42 version 1.33, 2000/09/04 19:03:40
Line 144 
Line 144 
 do_authenticated(struct passwd * pw)  do_authenticated(struct passwd * pw)
 {  {
         Session *s;          Session *s;
         int type;          int type, fd;
         int compression_level = 0, enable_compression_after_reply = 0;          int compression_level = 0, enable_compression_after_reply = 0;
         int have_pty = 0;          int have_pty = 0;
         char *command;          char *command;
Line 299 
Line 299 
                                 break;                                  break;
                         }                          }
                         strlcat(xauthfile, "/cookies", MAXPATHLEN);                          strlcat(xauthfile, "/cookies", MAXPATHLEN);
                         open(xauthfile, O_RDWR|O_CREAT|O_EXCL, 0600);                          fd = open(xauthfile, O_RDWR|O_CREAT|O_EXCL, 0600);
                           if (fd >= 0)
                                   close(fd);
                         restore_uid();                          restore_uid();
                         fatal_add_cleanup(xauthfile_cleanup_proc, NULL);                          fatal_add_cleanup(xauthfile_cleanup_proc, NULL);
                         success = 1;                          success = 1;
Line 1289 
Line 1291 
 int  int
 session_x11_req(Session *s)  session_x11_req(Session *s)
 {  {
           int fd;
         if (no_x11_forwarding_flag) {          if (no_x11_forwarding_flag) {
                 debug("X11 forwarding disabled in user configuration file.");                  debug("X11 forwarding disabled in user configuration file.");
                 return 0;                  return 0;
Line 1333 
Line 1336 
                 return 0;                  return 0;
         }          }
         strlcat(xauthfile, "/cookies", MAXPATHLEN);          strlcat(xauthfile, "/cookies", MAXPATHLEN);
         open(xauthfile, O_RDWR|O_CREAT|O_EXCL, 0600);          fd = open(xauthfile, O_RDWR|O_CREAT|O_EXCL, 0600);
           if (fd >= 0)
                   close(fd);
         restore_uid();          restore_uid();
         fatal_add_cleanup(xauthfile_cleanup_proc, s);          fatal_add_cleanup(xauthfile_cleanup_proc, s);
         return 1;          return 1;

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33