mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-misc/netkit-rsh: fix Modern C issues
Closes: https://bugs.gentoo.org/935500 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
38
net-misc/netkit-rsh/files/netkit-rsh-0.17-c99.patch
Normal file
38
net-misc/netkit-rsh/files/netkit-rsh-0.17-c99.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
https://bugs.gentoo.org/935500
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -344,6 +344,7 @@ rm -f __conftest*
|
||||
|
||||
echo -n 'Checking for crypt... '
|
||||
cat <<EOF >__conftest.c
|
||||
+#include <unistd.h>
|
||||
int main() { crypt("aa", "bb"); }
|
||||
|
||||
EOF
|
||||
@@ -370,6 +371,7 @@ rm -f __conftest*
|
||||
|
||||
echo -n 'Checking for rexec... '
|
||||
cat <<EOF >__conftest.c
|
||||
+#include <netdb.h>
|
||||
int main() { rexec(0, 0, 0, 0, 0, 0); }
|
||||
|
||||
EOF
|
||||
@@ -397,6 +399,7 @@ rm -f __conftest*
|
||||
|
||||
echo -n 'Checking for forkpty... '
|
||||
cat <<EOF >__conftest.c
|
||||
+#include <pty.h>
|
||||
int main() { forkpty(0, 0, 0, 0); }
|
||||
|
||||
EOF
|
||||
--- a/rlogind/auth.c
|
||||
+++ b/rlogind/auth.c
|
||||
@@ -136,7 +136,7 @@ int auth_checkauth(const char *remoteuser, const char *host,
|
||||
return -1;
|
||||
}
|
||||
|
||||
- pam_get_item(pamh, PAM_USER, &ln);
|
||||
+ pam_get_item(pamh, PAM_USER, (const void**) &ln);
|
||||
if (!ln || !*ln) {
|
||||
/*
|
||||
* Authentication wasn't adequate for requirements.
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
@@ -24,6 +24,7 @@ BDEPEND="app-arch/xz-utils"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/patches/
|
||||
"${FILESDIR}"/${PN}-0.17-c99.patch
|
||||
)
|
||||
|
||||
FILECAPS=( cap_net_bind_service usr/bin/r{cp,login,sh} )
|
||||
|
||||
Reference in New Issue
Block a user