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

Diff for /src/usr.bin/ssh/readconf.c between version 1.307 and 1.308

version 1.307, 2019/06/28 13:35:04 version 1.308, 2019/08/09 05:05:54
Line 471 
Line 471 
         if ((shell = getenv("SHELL")) == NULL)          if ((shell = getenv("SHELL")) == NULL)
                 shell = _PATH_BSHELL;                  shell = _PATH_BSHELL;
   
           if (access(shell, X_OK) == -1) {
                   fatal("Shell \"%s\" is not executable: %s",
                       shell, strerror(errno));
           }
   
         /* Need this to redirect subprocess stdin/out */          /* Need this to redirect subprocess stdin/out */
         if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1)          if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1)
                 fatal("open(/dev/null): %s", strerror(errno));                  fatal("open(/dev/null): %s", strerror(errno));

Legend:
Removed from v.1.307  
changed lines
  Added in v.1.308