MSYS2-packages/tmate/0003-do-not-check-directory-permissions.patch
Johannes Schindelin 09b14d4362 Add the 'tmate' package
The `tmate` project forked the `tmux` code to allow for easy,
almost-instantaneous pair programming in the console.

Using this project, the GitHub Action
https://github.com/marketplace/actions/debugging-with-tmate allows
debugging build failures interactively.

Unfortunately, `tmate` does not offer any support for Windows.

MSYS2 to the rescue! We just added package definitions for `msgpack-c`
and `libssh`, which are the two previously missing dependencies of
`tmate`, and with this commit, we add the package definition for `tmate`
itself.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2020-10-27 14:57:05 +01:00

29 lines
632 B
Diff

From 2361ec975b010d3735bbfed17e4c210f80d3c87f Mon Sep 17 00:00:00 2001
From: Gennady Feldman <gena01@gmail.com>
Date: Wed, 13 Dec 2017 07:23:15 -0500
Subject: [PATCH 3/3] do not check directory permissions
---
tmux.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tmux.c b/tmux.c
index 53b984d7..9c44b8d1 100644
--- a/tmux.c
+++ b/tmux.c
@@ -150,7 +150,11 @@ make_label(const char *label)
errno = ENOTDIR;
goto fail;
}
+#ifdef __MSYS__
+ if (sb.st_uid != uid) {
+#else /* __MSYS__ */
if (sb.st_uid != uid || (sb.st_mode & S_IRWXO) != 0) {
+#endif /* __MSYS__ */
errno = EACCES;
goto fail;
}
--
2.29.1