* net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock.

(cygwin_rexec): Ditto.
This commit is contained in:
Corinna Vinschen 2003-03-13 11:31:24 +00:00
parent 6fcd5661fe
commit 49a0d53c46
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-03-13 Corinna Vinschen <corinna@vinschen.de>
* net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock.
(cygwin_rexec): Ditto.
2003-03-13 Christopher Faylor <cgf@redhat.com>
* fhandler_tty.cc (fhandler_tty_slave::close): Fix typo in debug

View File

@ -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