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

Diff for /src/usr.bin/tmux/tmux.c between version 1.10 and 1.11

version 1.10, 2009/06/25 06:40:25 version 1.11, 2009/06/25 06:54:32
Line 371 
Line 371 
             &global_options, "default-command", "exec %s -l", shell);              &global_options, "default-command", "exec %s -l", shell);
   
         if (getcwd(cwd, sizeof cwd) == NULL) {          if (getcwd(cwd, sizeof cwd) == NULL) {
                 log_warn("getcwd");                  pw = getpwuid(getuid());
                 exit(1);                  if (pw->pw_dir != NULL && *pw->pw_dir != '\0')
                           strlcpy(cwd, pw->pw_dir, sizeof cwd);
                   else
                           strlcpy(cwd, "/", sizeof cwd);
         }          }
         options_set_string(&global_options, "default-path", "%s", cwd);          options_set_string(&global_options, "default-path", "%s", cwd);
   

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11