[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.122 and 1.123

version 1.122, 2013/10/05 10:40:49 version 1.123, 2013/10/10 12:03:22
Line 189 
Line 189 
                 errno = ENOTDIR;                  errno = ENOTDIR;
                 return (NULL);                  return (NULL);
         }          }
         if (sb.st_uid != uid || (sb.st_mode & (S_IRWXG|S_IRWXO)) != 0) {          if (sb.st_uid != uid || (!S_ISDIR(sb.st_mode) &&
                   sb.st_mode & (S_IRWXG|S_IRWXO)) != 0) {
                 errno = EACCES;                  errno = EACCES;
                 return (NULL);                  return (NULL);
         }          }
Line 389 
Line 390 
                 /* -L or default set. */                  /* -L or default set. */
                 if (label != NULL) {                  if (label != NULL) {
                         if ((path = makesocketpath(label)) == NULL) {                          if ((path = makesocketpath(label)) == NULL) {
                                 fprintf(stderr, "can't create socket\n");                                  fprintf(stderr, "can't create socket: %s\n",
                                           strerror(errno));
                                 exit(1);                                  exit(1);
                         }                          }
                 }                  }

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.123