Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-release-src > by-pkgid > 86d02c6716e421acdde40e1f95bd1d59 > files > 5

netcat-traditional-1.10-40.mga6.src.rpm

Summary: Put our version number in the help text. Also, requesting -h
         should not exit with a failure status.
Contributor: Decklin Foster <decklin@red-bean.com>
Suggested by: Loic Fosse <fosse@gostai.com>

Index: netcat-1.10/netcat.c
===================================================================
--- netcat-1.10.orig/netcat.c	2008-01-22 11:04:17.000000000 -0500
+++ netcat-1.10/netcat.c	2008-01-22 11:04:22.000000000 -0500
@@ -1830,8 +1830,9 @@
 	-v			verbose [use twice to be more verbose]\n\
 	-w secs			timeout for connects and final net reads\n\
 	-z			zero-I/O mode [used for scanning]");
-  bail ("port numbers can be individual or ranges: lo-hi [inclusive];\n\
+  holler ("port numbers can be individual or ranges: lo-hi [inclusive];\n\
 hyphens in port names must be backslash escaped (e.g. 'ftp\\-data').");
+  quit();
 } /* helpme */
 #endif /* HAVE_HELP */