From 49a0d53c467280bcd8195869ecfe2a5d6a9101d8 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 13 Mar 2003 11:31:24 +0000 Subject: * net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock. (cygwin_rexec): Ditto. --- winsup/cygwin/net.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/net.cc') diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 53c8eff1b..dda0e3113 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -1931,7 +1931,7 @@ cygwin_rcmd (char **ahost, unsigned short inport, char *locuser, fh = NULL; if (newfd >= 0) - fh = fdsock (*fd2p, "/dev/tcp", fd2s); + fh = fdsock (newfd, "/dev/tcp", fd2s); if (fh) *fd2p = newfd; else @@ -2015,7 +2015,7 @@ cygwin_rexec (char **ahost, unsigned short inport, char *locuser, fh = NULL; if (newfd >= 0) - fh = fdsock (*fd2p, "/dev/tcp", fd2s); + fh = fdsock (newfd, "/dev/tcp", fd2s); if (fh) *fd2p = newfd; else -- cgit v1.2.3