]> git.pld-linux.org Git - packages/tcp_wrappers.git/commitdiff
4035ce982371a966e542bde0576a5fd7 tcp_wrappers-alarm.patch tcp_wrappers-7_6-20
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 19 Apr 2001 12:05:31 +0000 (12:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    tcp_wrappers-alarm.patch -> 1.1

tcp_wrappers-alarm.patch [new file with mode: 0644]

diff --git a/tcp_wrappers-alarm.patch b/tcp_wrappers-alarm.patch
new file mode 100644 (file)
index 0000000..4fdbf9b
--- /dev/null
@@ -0,0 +1,28 @@
+--- tcp_wrappers_7.6/rfc931.c~ Thu Apr 19 14:07:22 2001
++++ tcp_wrappers_7.6/rfc931.c  Thu Apr 19 14:09:01 2001
+@@ -92,6 +92,7 @@
+     char   *cp;
+     char   *result = unknown;
+     FILE   *fp;
++    int    old_alarm;
+ #ifdef INET6
+     /* address family must be the same */
+@@ -135,7 +136,7 @@
+       if (sigsetjmp(timebuf,1) == 0) {
+           signal(SIGALRM, timeout);
+-          alarm(rfc931_timeout);
++          old_alarm = alarm(rfc931_timeout);
+           /*
+            * Bind the local and remote ends of the query socket to the same
+@@ -221,7 +222,7 @@
+                   result = user;
+               }
+           }
+-          alarm(0);
++          alarm(old_alarm);
+       }
+       fclose(fp);
+     }
This page took 0.084954 seconds and 4 git commands to generate.