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

Diff for /src/usr.bin/tmux/spawn.c between version 1.24 and 1.25

version 1.24, 2020/05/21 07:24:13 version 1.25, 2021/02/19 09:09:16
Line 379 
Line 379 
          * Child process. Change to the working directory or home if that           * Child process. Change to the working directory or home if that
          * fails.           * fails.
          */           */
         if (chdir(new_wp->cwd) != 0) {          if (chdir(new_wp->cwd) != 0 &&
                 if ((tmp = find_home()) == NULL || chdir(tmp) != 0)              ((tmp = find_home()) == NULL || chdir(tmp) != 0) &&
                         chdir("/");              chdir("/") != 0)
         }                  fatal("chdir failed");
   
         /*          /*
          * Update terminal escape characters from the session if available and           * Update terminal escape characters from the session if available and

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25