summaryrefslogtreecommitdiffstats
path: root/debian/patches/upstream-19344efa78.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:41:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:41:01 +0000
commita1c8c315b487542ec54c92c091f3f4ab5644fb54 (patch)
treeb68af5b092e9f2ca59caea1252a6babf78283bf6 /debian/patches/upstream-19344efa78.diff
parentAdding upstream version 3.3a. (diff)
downloadtmux-a1c8c315b487542ec54c92c091f3f4ab5644fb54.tar.xz
tmux-a1c8c315b487542ec54c92c091f3f4ab5644fb54.zip
Adding debian version 3.3a-3.debian/3.3a-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/upstream-19344efa78.diff')
-rw-r--r--debian/patches/upstream-19344efa78.diff34
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/upstream-19344efa78.diff b/debian/patches/upstream-19344efa78.diff
new file mode 100644
index 0000000..aa14f19
--- /dev/null
+++ b/debian/patches/upstream-19344efa78.diff
@@ -0,0 +1,34 @@
+From 19344efa78be23a02008be9da0991f54455c9f9e Mon Sep 17 00:00:00 2001
+From: Nicholas Marriott <nicholas.marriott@gmail.com>
+Date: Mon, 22 Aug 2022 08:20:49 +0100
+Subject: [PATCH] Fix fallback implementaion of getpeereid, from Pino Toscano.
+
+---
+ compat/getpeereid.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/compat/getpeereid.c b/compat/getpeereid.c
+index c194e886..b79f420a 100644
+--- a/compat/getpeereid.c
++++ b/compat/getpeereid.c
+@@ -18,6 +18,7 @@
+ #include <sys/socket.h>
+
+ #include <stdio.h>
++#include <unistd.h>
+
+ #ifdef HAVE_UCRED_H
+ #include <ucred.h>
+@@ -49,6 +50,8 @@ getpeereid(int s, uid_t *uid, gid_t *gid)
+ ucred_free(ucred);
+ return (0);
+ #else
+- return (getuid());
++ *uid = geteuid();
++ *gid = getegid();
++ return (0);
+ #endif
+ }
+--
+2.35.1
+