Dmitri Paduchikh
2015-01-17 19:26:09 UTC
---
tmux.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tmux.c b/tmux.c
index 5a1988e..832be8a 100644
--- a/tmux.c
+++ b/tmux.c
@@ -149,8 +149,7 @@ makesocketpath(const char *label)
errno = ENOTDIR;
return (NULL);
}
- if (sb.st_uid != uid || (!S_ISDIR(sb.st_mode) &&
- sb.st_mode & (S_IRWXG|S_IRWXO)) != 0) {
+ if (sb.st_uid != uid || (sb.st_mode & (S_IRWXG|S_IRWXO)) != 0) {
errno = EACCES;
return (NULL);
}
tmux.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tmux.c b/tmux.c
index 5a1988e..832be8a 100644
--- a/tmux.c
+++ b/tmux.c
@@ -149,8 +149,7 @@ makesocketpath(const char *label)
errno = ENOTDIR;
return (NULL);
}
- if (sb.st_uid != uid || (!S_ISDIR(sb.st_mode) &&
- sb.st_mode & (S_IRWXG|S_IRWXO)) != 0) {
+ if (sb.st_uid != uid || (sb.st_mode & (S_IRWXG|S_IRWXO)) != 0) {
errno = EACCES;
return (NULL);
}
--
2.2.1
2.2.1