From 8b10c8e3eca7bd517198e0a2f2334c338ddb651e Mon Sep 17 00:00:00 2001 From: Yasuhiro Kimura Date: Wed, 1 Jun 2022 17:52:47 +0900 Subject: [PATCH] tmux: Update to 3.3 --- tmux/PKGBUILD | 8 ++++---- tmux/no-check-dirs-permission.patch | 16 +++++++--------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/tmux/PKGBUILD b/tmux/PKGBUILD index fae58c53..77e42206 100644 --- a/tmux/PKGBUILD +++ b/tmux/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: Alexey Pavlov pkgname=tmux -_base_ver=3.2 -_bugfix=.a +_base_ver=3.3 +_bugfix= pkgver=${_base_ver}${_bugfix} pkgrel=1 pkgdesc='A terminal multiplexer' @@ -18,9 +18,9 @@ source=(${pkgname}-${pkgver}.tar.gz::https://github.com/tmux/tmux/archive/${_bas 'no-check-dirs-permission.patch' 'inherit-msystem-var.patch') -sha256sums=('497bc4ee16f10b53b161bf0253b6f9e20cd0f86c5d0104f149212cb0778ae13a' +sha256sums=('967044a34cf69197355f18f2f66e7300b29799576f91fbe04200ab71e5ef6913' 'cf7e0f642d43fc97f7c55be41c693cceab5c891f81fcee687e918075e55cd533' - '8f1938c9bcb99fba5441e11379a193c17eee582a03c04f1bde8089d58a84f44f' + '31f3c9f1b98a97788edca46fb7a0ba2b5328758f014d445096561c8466540c5d' 'aeaea034eeefe9598a56ebfabdf21cb991b2ac39d62dca9f857d24e5bc375366') prepare() { diff --git a/tmux/no-check-dirs-permission.patch b/tmux/no-check-dirs-permission.patch index cc1cebb3..965b73c8 100644 --- a/tmux/no-check-dirs-permission.patch +++ b/tmux/no-check-dirs-permission.patch @@ -1,16 +1,14 @@ -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); +--- tmux.c.orig 2022-06-01 17:37:46.135702500 +0900 ++++ tmux.c 2022-06-01 17:43:45.993181000 +0900 +@@ -222,7 +222,11 @@ + xasprintf(cause, "%s is not a directory", base); + 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; - return (NULL); + xasprintf(cause, "directory %s has unsafe permissions", base); + goto fail; }