diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-07-22 06:59:40 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-07-22 06:59:40 +0000 |
commit | ce513b9ea5f11e15aa04e3a5ad45ee23cf7d55f5 (patch) | |
tree | 3ed8354019f28ba631fef424a8d095424b6c204e /usr.bin/rdist/rdist.c | |
parent | d6d8429ebb0802a2585b8a8b4dc7df7a29e33898 (diff) |
Use our rcmdsh(3) and support $RSH.
Diffstat (limited to 'usr.bin/rdist/rdist.c')
-rw-r--r-- | usr.bin/rdist/rdist.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/rdist/rdist.c b/usr.bin/rdist/rdist.c index 2fd211cc276..9279120e4a4 100644 --- a/usr.bin/rdist/rdist.c +++ b/usr.bin/rdist/rdist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rdist.c,v 1.3 1996/06/26 05:38:17 deraadt Exp $ */ +/* $OpenBSD: rdist.c,v 1.4 1997/07/22 06:59:39 millert Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint static char RCSid[] = -"$OpenBSD: rdist.c,v 1.3 1996/06/26 05:38:17 deraadt Exp $"; +"$OpenBSD: rdist.c,v 1.4 1997/07/22 06:59:39 millert Exp $"; static char sccsid[] = "@(#)main.c 5.1 (Berkeley) 6/6/85"; @@ -66,7 +66,7 @@ char *remotemsglist = NULL; char optchars[] = "A:a:bcd:DFf:hil:L:M:m:NnOo:p:P:qRrst:Vvwxy"; FILE *opendist(); char *path_rdistd = _PATH_RDISTD; -char *path_remsh = _PATH_REMSH; +char *path_remsh = NULL; /* * Add a hostname to the host list @@ -281,6 +281,9 @@ main(argc, argv, envp) fatalerr( "The -n flag and \"verify\" mode may not both be used."); + if (path_remsh == NULL) + path_remsh = getenv("RSH"); + /* * Don't fork children for nflag */ |