aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/net.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-03-13 11:31:24 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-03-13 11:31:24 +0000
commit49a0d53c467280bcd8195869ecfe2a5d6a9101d8 (patch)
tree1d0cd2520676e3ea867e7f1697e2ddf21359ce1f /winsup/cygwin/net.cc
parent6fcd5661fe69035969fd1accaf6e8453315d4bca (diff)
downloadnewlib-49a0d53c467280bcd8195869ecfe2a5d6a9101d8.zip
newlib-49a0d53c467280bcd8195869ecfe2a5d6a9101d8.tar.gz
newlib-49a0d53c467280bcd8195869ecfe2a5d6a9101d8.tar.bz2
* net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock.
(cygwin_rexec): Ditto.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 53c8eff..dda0e31 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