]> git.pld-linux.org Git - packages/netcat-openbsd.git/commitdiff
- include correct function prototypes so the compiler can correctly auto/th/netcat-openbsd-1.105-3 auto/ti/netcat-openbsd-1.105-3
authorKacper Kornet <draenog@pld-linux.org>
Tue, 21 May 2013 00:57:02 +0000 (01:57 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Tue, 21 May 2013 01:02:38 +0000 (02:02 +0100)
  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
0006-quit-timer.patch
netcat-openbsd.spec

index 07593a1671c715f514befc2942ffebe793f99966..cc2bc37859e6cfd358fcfbba2de6fb59f666bd36 100644 (file)
@@ -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"
  
index 9e64faa0f36249724234c90c2866fbbcd3b22559..4eadc89d6a17f8fc4d0456b40a9bb7ee67158415 100644 (file)
@@ -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;
index 602dd40d42f2adf25a95dcc7ec4c373b51fe1944..337924177ce321d7746dad6070cc449a87a4680b 100644 (file)
@@ -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
This page took 0.119905 seconds and 4 git commands to generate.