aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-netkit/netkit-rsh/netkit-rsh/netkit-rsh-0.17-rexec-ipv6.patch
blob: efd060f36519fc63ae6cef07fb86264dd02d3b96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
make rexec support ipv6

Upstream-status: Pending

rexec equals rexec_af(... ,AF_INET) which only support ipv4,
use rexec_af(..., AF_UNSPEC) to support both ipv6 and ipv4.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
 rexec/rexec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rexec/rexec.c b/rexec/rexec.c
index 0913c02..9c8f769 100644
--- a/rexec/rexec.c
+++ b/rexec/rexec.c
@@ -214,8 +214,8 @@ int main(int argc, char *argv[])
     passwd = getpass("Password: ");
   }
 
-  if ( (sock = rexec(&host, port_exec, user_name, passwd, command, 
-		     p_to_aux_sock)) < 0 )
+  if ( (sock = rexec_af(&host, port_exec, user_name, passwd, command, 
+		     p_to_aux_sock, AF_UNSPEC)) < 0 )
  {
     fprintf(stderr,"%s: Error in rexec system call: ",argv[0]);
     perror(NULL);
-- 
1.7.4.1