[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.52 and 1.53

version 1.52, 2001/02/03 10:08:37 version 1.53, 2001/02/04 15:32:25
Line 114 
Line 114 
 static char *xauthfile;  static char *xauthfile;
   
 /* original command from peer. */  /* original command from peer. */
 char *original_command = NULL;  char *original_command = NULL;
   
 /* data */  /* data */
 #define MAX_SESSIONS 10  #define MAX_SESSIONS 10
Line 830 
Line 830 
                             (LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) {                              (LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) {
                                 perror("unable to set user context");                                  perror("unable to set user context");
                                 exit(1);                                  exit(1);
   
                         }                          }
 #else  #else
                         if (setlogin(pw->pw_name) < 0)                          if (setlogin(pw->pw_name) < 0)
Line 1059 
Line 1059 
                                 if (f) {                                  if (f) {
                                         fprintf(f, "add %s %s %s\n", display,                                          fprintf(f, "add %s %s %s\n", display,
                                             auth_proto, auth_data);                                              auth_proto, auth_data);
                                         if (screen != NULL)                                          if (screen != NULL)
                                                 fprintf(f, "add %.*s/unix%s %s %s\n",                                                  fprintf(f, "add %.*s/unix%s %s %s\n",
                                                     (int)(screen-display), display,                                                      (int)(screen-display), display,
                                                     screen, auth_proto, auth_data);                                                      screen, auth_proto, auth_data);

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53