summaryrefslogtreecommitdiff
path: root/debian/patches-applied/rhosts_int32_not_bool.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches-applied/rhosts_int32_not_bool.patch')
-rw-r--r--debian/patches-applied/rhosts_int32_not_bool.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/patches-applied/rhosts_int32_not_bool.patch b/debian/patches-applied/rhosts_int32_not_bool.patch
new file mode 100644
index 00000000..c2a9c3a6
--- /dev/null
+++ b/debian/patches-applied/rhosts_int32_not_bool.patch
@@ -0,0 +1,13 @@
+Index: pam.deb/modules/pam_rhosts/pam_rhosts_auth.c
+===================================================================
+--- pam.deb.orig/modules/pam_rhosts/pam_rhosts_auth.c
++++ pam.deb/modules/pam_rhosts/pam_rhosts_auth.c
+@@ -267,7 +267,7 @@
+
+
+ /* Try for raw ip address first. */
+- if (isdigit(*lhost) && (int32_t)(laddr = inet_addr(lhost) != -1))
++ if (isdigit(*lhost) && (int32_t)(laddr = inet_addr(lhost)) != -1)
+ return (negate*(! (raddr ^ laddr)));
+
+ /* Better be a hostname. */