Subject: Bug#4120: rdist & ssh

From: Patrick Weemeeuw <[email-masked]>
Date: Mon, 12 Aug 1996 17:13:50 +0200

Package: netstd
Version: 2.06-1

Currently the netstd package contains rdist version 6.1.
Could this please be upgraded to version 6.1.1 or 6.1.2,
so that it works with ssh?

Thanks.

----------------------------------------------------------------------

>From the ssh FAQ:

    4.4 Can I use rdist with ssh?

    Stock rdist 6.1.0 does not work together with ssh, due to bugs in it. The 6.1.1 versions of rdist and
    later versions are believed to work.

    If you use rdist, don't forget to compile the path to ssh into it. Alternatively, you may specify the -P
    option so rdist uses ssh, and not rsh.

    If you use password authentication with rdist 6.1.2, you will need to apply the following patch to
    rdist to make it work: 

    --- src/rshrcmd.c.orig  Tue Jun 11 16:51:21 1996
    +++ src/rshrcmd.c       Tue Jun 11 16:52:05 1996
    @@ -63,7 +63,7 @@
		    /* 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);
		    }