summaryrefslogtreecommitdiff
path: root/net/rdist6/files/patch-ah
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2005-02-04 00:45:31 +0000
committerMikhail Teterin <mi@FreeBSD.org>2005-02-04 00:45:31 +0000
commitcfae8997c751d279d25bba42dca968a7dc32e776 (patch)
tree73b939b9f01e5039b5a3639f6c9ce4237e12e376 /net/rdist6/files/patch-ah
parentCorrect stupid typo (diff)
Fix warnings. Default to ssh. Don't insist, that the remote hostname
resolves -- it may be an entry from ssh's config file. Use ftruncate -- we have it. Bump PORTREVISION. Skimmed over by: peter (past maintainer)
Notes
Notes: svn path=/head/; revision=128009
Diffstat (limited to 'net/rdist6/files/patch-ah')
-rw-r--r--net/rdist6/files/patch-ah24
1 files changed, 21 insertions, 3 deletions
diff --git a/net/rdist6/files/patch-ah b/net/rdist6/files/patch-ah
index 19ded6be538b..5e08b75206f2 100644
--- a/net/rdist6/files/patch-ah
+++ b/net/rdist6/files/patch-ah
@@ -1,6 +1,24 @@
---- src/rshrcmd.c.dist Tue Dec 12 08:20:56 1995
-+++ src/rshrcmd.c Wed Dec 11 07:14:13 1996
-@@ -64,5 +64,5 @@
+--- src/rshrcmd.c Mon Nov 9 23:15:07 1998
++++ src/rshrcmd.c Tue Jan 18 14:53:29 2005
+@@ -42,5 +42,4 @@
+ {
+ int cpid;
+- struct hostent *hp;
+ int sp[2];
+
+@@ -48,11 +47,4 @@
+ if (fd2p != 0)
+ return -1;
+- /* validate remote hostname. */
+- hp = gethostbyname(*ahost);
+- if (hp == 0) {
+- error("%s: unknown host", *ahost);
+- return -1;
+- }
+- /* *ahost = hp->h_name;*/ /* This makes me nervous. */
+
+ /* get a socketpair we'll use for stdin and stdout. */
+@@ -72,5 +64,5 @@
sp[0]. */
(void) close(sp[0]);
- if (dup2(sp[1], 0) < 0 || dup2(0,1) < 0 || dup2(0, 2) < 0) {