Package: netcat / 1.10-41

no-sleep-punt.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Summary: Remove extraneous sleep and "punt!" message.
Contributor: Alessandro Rubini <rubini@prosa.it>

Index: netcat-1.10/netcat.c
===================================================================
--- netcat-1.10.orig/netcat.c
+++ netcat-1.10/netcat.c
@@ -226,7 +226,6 @@ void bail (str, p1, p2, p3, p4, p5, p6)
   o_verbose = 1;
   holler (str, p1, p2, p3, p4, p5, p6);
   close (netfd);
-  sleep (1);
   exit (1);
 } /* bail */
 
@@ -237,7 +236,7 @@ void catch ()
   errno = 0;
   if (o_verbose > 1)		/* normally we don't care */
     bail (wrote_txt, wrote_net, wrote_out);
-  bail (" punt!");
+  bail ("");
 }
 
 /* timeout and other signal handling cruft */