From: Kacper Kornet Date: Tue, 21 May 2013 00:57:02 +0000 (+0100) Subject: - include correct function prototypes so the compiler can correctly X-Git-Tag: auto/th/netcat-openbsd-1.105-3 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=7c95fee97f35dece90c5d2ae6c2df1bdb58658f5;p=packages%2Fnetcat-openbsd.git - 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. --- 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 #include #include -+#include ++#include +#include #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; 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