From 93e15c3aeab3b43d9492fa48b0b0ebcedcd394fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Tue, 25 May 2021 13:11:16 +0200 Subject: groups/241.native_packages_inet.group: adds ngircd v26.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lucio Andrés Illanes Albornoz --- patches/ngircd-26.1.local.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 patches/ngircd-26.1.local.patch (limited to 'patches/ngircd-26.1.local.patch') diff --git a/patches/ngircd-26.1.local.patch b/patches/ngircd-26.1.local.patch new file mode 100644 index 00000000..be2f3eaa --- /dev/null +++ b/patches/ngircd-26.1.local.patch @@ -0,0 +1,28 @@ +diff -ru ngircd-26.1.orig/src/ngircd/ngircd.c ngircd-26.1/src/ngircd/ngircd.c +--- ngircd-26.1.orig/src/ngircd/ngircd.c 2021-01-01 14:59:34.000000000 +0000 ++++ ngircd-26.1/src/ngircd/ngircd.c 2021-05-22 11:09:21.450145200 +0000 +@@ -574,7 +574,7 @@ + { + struct passwd *pwd; + +-#ifdef __CYGWIN__ ++#if defined(__CYGWIN__) || defined(__midipix__) + /* Cygwin kludge. + * It can return EINVAL instead of EPERM + * so, if we are already unprivileged, +@@ -739,6 +739,7 @@ + } + #endif + ++#ifndef __midipix__ + /* Change user ID */ + if (getuid() != Conf_UID) { + if (setuid(Conf_UID) != 0) { +@@ -751,6 +752,7 @@ + goto out; + } + } ++#endif + + initialized = true; + -- cgit v1.2.3