From bc71357cbe2afb1fdf33519b3c4cf6a8d8fc13fb Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Sat, 17 Aug 2024 03:31:49 -0600 Subject: Regen netcat patch --- patches/netcat.c.patch | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/patches/netcat.c.patch b/patches/netcat.c.patch index 9c3a450..319aca6 100644 --- a/patches/netcat.c.patch +++ b/patches/netcat.c.patch @@ -1,5 +1,5 @@ ---- apps/nc/netcat.c.orig Tue Aug 15 15:17:28 2023 -+++ apps/nc/netcat.c Tue Aug 15 15:17:54 2023 +--- apps/nc/netcat.c.orig Sat Aug 17 03:21:05 2024 ++++ apps/nc/netcat.c Sat Aug 17 03:28:50 2024 @@ -93,9 +93,13 @@ int zflag; /* Port Scan Flag */ int Dflag; /* sodebug */ int Iflag; /* TCP receive buffer size */ @@ -53,7 +53,7 @@ /* Cruft to make sure options are clean, and used properly. */ if (argc == 1 && family == AF_UNIX) { -@@ -927,7 +937,10 @@ remote_connect(const char *host, const char *port, str +@@ -923,7 +933,10 @@ remote_connect(const char *host, const char *port, str char *ipaddr) { struct addrinfo *res, *res0; @@ -65,7 +65,7 @@ if ((error = getaddrinfo(host, port, &hints, &res0))) errx(1, "getaddrinfo for host \"%s\" port %s: %s", host, -@@ -942,8 +955,10 @@ remote_connect(const char *host, const char *port, str +@@ -938,8 +951,10 @@ remote_connect(const char *host, const char *port, str if (sflag || pflag) { struct addrinfo ahints, *ares; @@ -76,7 +76,7 @@ memset(&ahints, 0, sizeof(struct addrinfo)); ahints.ai_family = res->ai_family; ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM; -@@ -1035,7 +1050,10 @@ int +@@ -1031,7 +1046,10 @@ int local_listen(const char *host, const char *port, struct addrinfo hints) { struct addrinfo *res, *res0; @@ -88,7 +88,7 @@ int error; /* Allow nodename to be null. */ -@@ -1056,9 +1074,11 @@ local_listen(const char *host, const char *port, struc +@@ -1052,9 +1070,11 @@ local_listen(const char *host, const char *port, struc res->ai_protocol)) == -1) continue; @@ -100,7 +100,7 @@ set_common_sockopts(s, res->ai_family); -@@ -1563,11 +1583,13 @@ set_common_sockopts(int s, int af) +@@ -1559,11 +1579,13 @@ set_common_sockopts(int s, int af) { int x = 1; @@ -114,7 +114,7 @@ if (Dflag) { if (setsockopt(s, SOL_SOCKET, SO_DEBUG, &x, sizeof(x)) == -1) -@@ -1578,9 +1600,16 @@ set_common_sockopts(int s, int af) +@@ -1574,9 +1596,16 @@ set_common_sockopts(int s, int af) IP_TOS, &Tflag, sizeof(Tflag)) == -1) err(1, "set IP ToS"); @@ -131,7 +131,7 @@ } if (Iflag) { if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, -@@ -1604,13 +1633,17 @@ set_common_sockopts(int s, int af) +@@ -1600,13 +1629,17 @@ set_common_sockopts(int s, int af) } if (minttl != -1) { @@ -150,7 +150,7 @@ } } -@@ -1835,15 +1868,19 @@ help(void) +@@ -1831,15 +1864,19 @@ help(void) \t-P proxyuser\tUsername for proxy authentication\n\ \t-p port\t Specify local port for remote connects\n\ \t-R CAfile CA bundle\n\ -- cgit v1.2.3-55-g6feb