[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.106 and 1.107

version 1.106, 2011/10/23 08:03:27 version 1.107, 2011/10/23 08:34:01
Line 124 
Line 124 
         return (0);          return (0);
 }  }
   
   const char*
   get_full_path(const char *wd, const char *path)
   {
           static char     newpath[MAXPATHLEN];
           char            oldpath[MAXPATHLEN];
   
           if (getcwd(oldpath, sizeof oldpath) == NULL)
                   return (NULL);
           if (chdir(wd) != 0)
                   return (NULL);
           if (realpath(path, newpath) != 0)
                   return (NULL);
           chdir(oldpath);
           return (newpath);
   }
   
 void  void
 parseenvironment(void)  parseenvironment(void)
 {  {

Legend:
Removed from v.1.106  
changed lines
  Added in v.1.107