Files
MSYS2-packages/tmux-git/no-check-dirs-permission.patch
Yuya Adachi e5a665f284 Modify "can't create socket" occurred
This patch belongs to issue #271.
(https://github.com/Alexpux/MSYS2-packages/issues/271)
It affects to only MSYS2 environment.
2015-07-07 15:35:38 +09:00

17 lines
360 B
Diff

diff --git tmux.c tmux.c
index 62f8a80..d8ed280 100644
--- tmux.c
+++ tmux.c
@@ -149,7 +149,11 @@ makesocketpath(const char *label)
errno = ENOTDIR;
return (NULL);
}
+#ifdef __MSYS__
+ if (sb.st_uid != uid) {
+#else /* __MSYS__ */
if (sb.st_uid != uid || (sb.st_mode & S_IRWXO) != 0) {
+#endif /* __MSYS__ */
errno = EACCES;
return (NULL);
}