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

Diff for /src/usr.bin/ssh/ssh-agent.c between version 1.160 and 1.161

version 1.160, 2009/03/23 08:31:19 version 1.161, 2009/03/23 19:38:04
Line 1042 
Line 1042 
         pid_t pid;          pid_t pid;
         char pidstrbuf[1 + 3 * sizeof pid];          char pidstrbuf[1 + 3 * sizeof pid];
         struct timeval *tvp = NULL;          struct timeval *tvp = NULL;
           size_t len;
   
         /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */          /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
         sanitise_stdfd();          sanitise_stdfd();
Line 1093 
Line 1094 
   
         if (ac == 0 && !c_flag && !s_flag) {          if (ac == 0 && !c_flag && !s_flag) {
                 shell = getenv("SHELL");                  shell = getenv("SHELL");
                 if (shell != NULL &&                  if (shell != NULL && (len = strlen(shell)) > 2 &&
                     strncmp(shell + MAX(strlen(shell) - 3, 0), "csh", 3) == 0)                      strncmp(shell + len - 3, "csh", 3) == 0)
                         c_flag = 1;                          c_flag = 1;
         }          }
         if (k_flag) {          if (k_flag) {

Legend:
Removed from v.1.160  
changed lines
  Added in v.1.161