MSYS2-packages/tmux/no-check-dirs-permission.patch
Gennady Feldman 080d548b6e tmux: Update to 2.6
* Build release instead of git "master"
* Some small PKGBUILD cleanup.
2017-12-16 22:03:51 -05: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);
}