[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.31 and 1.32

version 1.31, 2009/08/11 17:18:35 version 1.32, 2009/08/12 09:14:25
Line 79 
Line 79 
   
         log_close();          log_close();
         if (debug_level > 0) {          if (debug_level > 0) {
                 xasprintf(                  xasprintf(&path, "tmux-%s-%ld.log", name, (long) getpid());
                     &path, "%s-%s-%ld.log", __progname, name, (long) getpid());  
                 log_open_file(debug_level, path);                  log_open_file(debug_level, path);
                 xfree(path);                  xfree(path);
         }          }
Line 184 
Line 183 
         u_int           uid;          u_int           uid;
   
         uid = getuid();          uid = getuid();
         xsnprintf(base, MAXPATHLEN, "%s/%s-%d", _PATH_TMP, __progname, uid);          xsnprintf(base, MAXPATHLEN, "%s/tmux-%d", _PATH_TMP, uid);
   
         if (mkdir(base, S_IRWXU) != 0 && errno != EEXIST)          if (mkdir(base, S_IRWXU) != 0 && errno != EEXIST)
                 return (NULL);                  return (NULL);

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32