| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/net/rdist6/files/ |
Upload File : |
--- src/rshrcmd.c.orig 1998-11-10 04:15:07 UTC
+++ src/rshrcmd.c
@@ -41,19 +41,11 @@ rshrcmd(ahost, port, luser, ruser, cmd, fd2p)
int *fd2p;
{
int cpid;
- struct hostent *hp;
int sp[2];
/* insure that we are indeed being used as we thought. */
if (fd2p != 0)
return -1;
- /* validate remote hostname. */
- hp = gethostbyname(*ahost);
- if (hp == 0) {
- error("%s: unknown host", *ahost);
- return -1;
- }
- /* *ahost = hp->h_name;*/ /* This makes me nervous. */
/* get a socketpair we'll use for stdin and stdout. */
if (getsocketpair(AF_UNIX, SOCK_STREAM, 0, sp) < 0) {
@@ -71,7 +63,7 @@ rshrcmd(ahost, port, luser, ruser, cmd, fd2p)
/* child. we use sp[1] to be stdin/stdout, and close
sp[0]. */
(void) close(sp[0]);
- if (dup2(sp[1], 0) < 0 || dup2(0,1) < 0 || dup2(0, 2) < 0) {
+ if (dup2(sp[1], 0) < 0 || dup2(0,1) < 0) {
error("dup2 failed: %s.", SYSERR);
_exit(255);
}