aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>1999-08-29 01:06:10 +0800
committercpiazza <cpiazza@FreeBSD.org>1999-08-29 01:06:10 +0800
commitd8b4a6a91a8f67c644fbe689f36813d3952bd952 (patch)
tree144d16bc2e7a3473d17de5f1b3c52e946a4f5699
parenta295d1348bea4520f81bd151c3bc02dd148250af (diff)
downloadfreebsd-ports-gnome-d8b4a6a91a8f67c644fbe689f36813d3952bd952.tar.gz
freebsd-ports-gnome-d8b4a6a91a8f67c644fbe689f36813d3952bd952.tar.zst
freebsd-ports-gnome-d8b4a6a91a8f67c644fbe689f36813d3952bd952.zip
Add a patch to stop tcpconn from segfaulting if run with no arguments.
PR: 13381 Submitted by: Maxim Sobolev <sobomax@altavista.net>
-rw-r--r--comms/mserver/files/patch-ae12
1 files changed, 12 insertions, 0 deletions
diff --git a/comms/mserver/files/patch-ae b/comms/mserver/files/patch-ae
new file mode 100644
index 000000000000..79391300b367
--- /dev/null
+++ b/comms/mserver/files/patch-ae
@@ -0,0 +1,12 @@
+--- tcpconn.c.orig Thu Aug 26 00:22:26 1999
++++ tcpconn.c Thu Aug 26 00:30:52 1999
+@@ -44,6 +44,9 @@
+ char buff[BUFF_SIZE], device[128], *s;
+
+ *device = 0;
++ if (argc < 2)
++ errorf ("tcpconn: error: hostname required\n" \
++ "Usage: tcpconn [-d pty] [-p port] hostname[:port]\n");
+ for (n = 1; *argv[n] == '-'; n++)
+ switch (argv[n][1])
+ {