diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-03-13 11:31:24 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-03-13 11:31:24 +0000 |
commit | 49a0d53c467280bcd8195869ecfe2a5d6a9101d8 (patch) | |
tree | 1d0cd2520676e3ea867e7f1697e2ddf21359ce1f /winsup/cygwin/net.cc | |
parent | 6fcd5661fe69035969fd1accaf6e8453315d4bca (diff) | |
download | newlib-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.cc | 4 |
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 |