summaryrefslogtreecommitdiffstats
path: root/network/netcat-openbsd/patches/0004-get-sev-by-name.patch
diff options
context:
space:
mode:
Diffstat (limited to 'network/netcat-openbsd/patches/0004-get-sev-by-name.patch')
-rw-r--r--network/netcat-openbsd/patches/0004-get-sev-by-name.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/network/netcat-openbsd/patches/0004-get-sev-by-name.patch b/network/netcat-openbsd/patches/0004-get-sev-by-name.patch
deleted file mode 100644
index e0734b9c03..0000000000
--- a/network/netcat-openbsd/patches/0004-get-sev-by-name.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From: Aron Xu <aron@debian.org>
-Date: Mon, 13 Feb 2012 14:45:08 +0800
-Subject: get sev by name
-
----
- netcat.c | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
-
---- a/netcat.c
-+++ b/netcat.c
-@@ -1680,11 +1680,16 @@ strtoport(char *portstr, int udp)
- void
- build_ports(char *p)
- {
-+ struct servent *sv;
- char *n;
- int hi, lo, cp;
- int x = 0;
-
-- if (isdigit((unsigned char)*p) && (n = strchr(p, '-')) != NULL) {
-+ sv = getservbyname(p, uflag ? "udp" : "tcp");
-+ if (sv) {
-+ if (asprintf(&portlist[0], "%d", ntohs(sv->s_port)) < 0)
-+ err(1, "asprintf");
-+ } else if (isdigit((unsigned char)*p) && (n = strchr(p, '-')) != NULL) {
- *n = '\0';
- n++;
-