[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.221 and 1.221.4.1

version 1.221, 2007/01/21 01:41:54 version 1.221.4.1, 2008/03/31 01:12:07
Line 878 
Line 878 
         do_xauth =          do_xauth =
             s->display != NULL && s->auth_proto != NULL && s->auth_data != NULL;              s->display != NULL && s->auth_proto != NULL && s->auth_data != NULL;
   
         /* ignore _PATH_SSH_USER_RC for subsystems */          /* ignore _PATH_SSH_USER_RC for subsystems and admin forced commands */
         if (!s->is_subsystem && (stat(_PATH_SSH_USER_RC, &st) >= 0)) {          if (!s->is_subsystem && options.adm_forced_command == NULL &&
               (stat(_PATH_SSH_USER_RC, &st) >= 0)) {
                 snprintf(cmd, sizeof cmd, "%s -c '%s %s'",                  snprintf(cmd, sizeof cmd, "%s -c '%s %s'",
                     shell, _PATH_BSHELL, _PATH_SSH_USER_RC);                      shell, _PATH_BSHELL, _PATH_SSH_USER_RC);
                 if (debug_flag)                  if (debug_flag)

Legend:
Removed from v.1.221  
changed lines
  Added in v.1.221.4.1