[packages/netcat-openbsd] - include correct function prototypes so the compiler can correctly cast arguments of strtonum

draenog draenog at pld-linux.org
Tue May 21 03:02:54 CEST 2013


commit 7c95fee97f35dece90c5d2ae6c2df1bdb58658f5
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Tue May 21 01:57:02 2013 +0100

    - include correct function prototypes so the compiler can correctly
      cast arguments of strtonum
    
    It fixes some sefaults on i486 and i686, for example:
    
    nc -x 127.0.0.1:4243 -X4 127.0.0.1 4242
    
    which broke the openssh tests.

 0001-port-to-linux-with-libsd.patch | 2 +-
 0006-quit-timer.patch               | 2 +-
 netcat-openbsd.spec                 | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/netcat-openbsd.spec b/netcat-openbsd.spec
index 602dd40..3379241 100644
--- a/netcat-openbsd.spec
+++ b/netcat-openbsd.spec
@@ -4,7 +4,7 @@ Summary(pl.UTF-8):	Proste narzędzie do testowania sieci
 Summary(pt_BR.UTF-8):	Ferramenta de teste e depuração para serviços de rede
 Name:		netcat-openbsd
 Version:	1.105
-Release:	2
+Release:	3
 License:	Public Domain
 Group:		Networking/Utilities
 Source0:	http://ftp.debian.org/debian/pool/main/n/%{name}/%{name}_%{version}.orig.tar.gz
diff --git a/0001-port-to-linux-with-libsd.patch b/0001-port-to-linux-with-libsd.patch
index 07593a1..cc2bc37 100644
--- a/0001-port-to-linux-with-libsd.patch
+++ b/0001-port-to-linux-with-libsd.patch
@@ -106,7 +106,7 @@ Subject: [PATCH] port to linux with libsd
  #include <unistd.h>
  #include <fcntl.h>
  #include <limits.h>
-+#include <stdlib.h>
++#include <bsd/stdlib.h>
 +#include <string.h>
  #include "atomicio.h"
  
diff --git a/0006-quit-timer.patch b/0006-quit-timer.patch
index 9e64faa..4eadc89 100644
--- a/0006-quit-timer.patch
+++ b/0006-quit-timer.patch
@@ -68,7 +68,7 @@ Subject: [PATCH] quit timer
  			pflag = optarg;
  			break;
 +                case 'q':
-+			qflag = strtonum(optarg, (long long)INT_MIN, (long long)INT_MAX, &errstr);
++			qflag = strtonum(optarg, INT_MIN, INT_MAX, &errstr);
 +			if (errstr)
 +				errx(1, "quit timer %s: %s", errstr, optarg);
 +			break;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/netcat-openbsd.git/commitdiff/7c95fee97f35dece90c5d2ae6c2df1bdb58658f5



More information about the pld-cvs-commit mailing list