aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2023-08-15 15:19:06 -0600
committerTheo Buehler <tb@openbsd.org>2023-08-15 15:22:42 -0600
commitbc03c7c8988f0340416af187211eb4a8b8448061 (patch)
treee079ff96e1f4d1474b85b155f5df73583814dde8
parent585a4c8c61476dc2df7152a420c60de9f5fa2359 (diff)
downloadportable-bc03c7c8988f0340416af187211eb4a8b8448061.tar.gz
portable-bc03c7c8988f0340416af187211eb4a8b8448061.tar.bz2
portable-bc03c7c8988f0340416af187211eb4a8b8448061.zip
Regen netcat patch
-rw-r--r--patches/netcat.c.patch12
1 files changed, 6 insertions, 6 deletions
diff --git a/patches/netcat.c.patch b/patches/netcat.c.patch
index f9d4be0..9c3a450 100644
--- a/patches/netcat.c.patch
+++ b/patches/netcat.c.patch
@@ -1,5 +1,5 @@
1--- apps/nc/netcat.c.orig Thu Feb 9 18:42:55 2023 1--- apps/nc/netcat.c.orig Tue Aug 15 15:17:28 2023
2+++ apps/nc/netcat.c Thu Feb 9 18:43:08 2023 2+++ apps/nc/netcat.c Tue Aug 15 15:17:54 2023
3@@ -93,9 +93,13 @@ int zflag; /* Port Scan Flag */ 3@@ -93,9 +93,13 @@ int zflag; /* Port Scan Flag */
4 int Dflag; /* sodebug */ 4 int Dflag; /* sodebug */
5 int Iflag; /* TCP receive buffer size */ 5 int Iflag; /* TCP receive buffer size */
@@ -100,7 +100,7 @@
100 100
101 set_common_sockopts(s, res->ai_family); 101 set_common_sockopts(s, res->ai_family);
102 102
103@@ -1557,11 +1577,13 @@ set_common_sockopts(int s, int af) 103@@ -1563,11 +1583,13 @@ set_common_sockopts(int s, int af)
104 { 104 {
105 int x = 1; 105 int x = 1;
106 106
@@ -114,7 +114,7 @@
114 if (Dflag) { 114 if (Dflag) {
115 if (setsockopt(s, SOL_SOCKET, SO_DEBUG, 115 if (setsockopt(s, SOL_SOCKET, SO_DEBUG,
116 &x, sizeof(x)) == -1) 116 &x, sizeof(x)) == -1)
117@@ -1572,9 +1594,16 @@ set_common_sockopts(int s, int af) 117@@ -1578,9 +1600,16 @@ set_common_sockopts(int s, int af)
118 IP_TOS, &Tflag, sizeof(Tflag)) == -1) 118 IP_TOS, &Tflag, sizeof(Tflag)) == -1)
119 err(1, "set IP ToS"); 119 err(1, "set IP ToS");
120 120
@@ -131,7 +131,7 @@
131 } 131 }
132 if (Iflag) { 132 if (Iflag) {
133 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, 133 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF,
134@@ -1598,13 +1627,17 @@ set_common_sockopts(int s, int af) 134@@ -1604,13 +1633,17 @@ set_common_sockopts(int s, int af)
135 } 135 }
136 136
137 if (minttl != -1) { 137 if (minttl != -1) {
@@ -150,7 +150,7 @@
150 } 150 }
151 } 151 }
152 152
153@@ -1829,15 +1862,19 @@ help(void) 153@@ -1835,15 +1868,19 @@ help(void)
154 \t-P proxyuser\tUsername for proxy authentication\n\ 154 \t-P proxyuser\tUsername for proxy authentication\n\
155 \t-p port\t Specify local port for remote connects\n\ 155 \t-p port\t Specify local port for remote connects\n\
156 \t-R CAfile CA bundle\n\ 156 \t-R CAfile CA bundle\n\