=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rdist/docmd.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/rdist/docmd.c 1997/02/12 19:48:24 1.5 --- src/usr.bin/rdist/docmd.c 1997/07/22 06:59:38 1.6 *************** *** 1,4 **** ! /* $OpenBSD: docmd.c,v 1.5 1997/02/12 19:48:24 dm Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: docmd.c,v 1.6 1997/07/22 06:59:38 millert Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. *************** *** 35,41 **** #ifndef lint static char RCSid[] = ! "$OpenBSD: docmd.c,v 1.5 1997/02/12 19:48:24 dm Exp $"; static char sccsid[] = "@(#)docmd.c 5.1 (Berkeley) 6/6/85"; --- 35,41 ---- #ifndef lint static char RCSid[] = ! "$OpenBSD: docmd.c,v 1.6 1997/07/22 06:59:38 millert Exp $"; static char sccsid[] = "@(#)docmd.c 5.1 (Berkeley) 6/6/85"; *************** *** 285,293 **** if (becomeuser() != 0) exit(1); #else /* !DIRECT_RCMD */ ! debugmsg(DM_MISC, "Remote shell command = '%s'\n", path_remsh); (void) signal(SIGPIPE, SIG_IGN); ! desc = rshrcmd(&rhost, -1, luser, ruser, cmd, 0); if (desc > 0) (void) signal(SIGPIPE, sighandler); #endif /* DIRECT_RCMD */ --- 285,294 ---- if (becomeuser() != 0) exit(1); #else /* !DIRECT_RCMD */ ! debugmsg(DM_MISC, "Remote shell command = '%s'\n", ! path_remsh ? path_remsh : "default"); (void) signal(SIGPIPE, SIG_IGN); ! desc = rcmdsh(&rhost, -1, luser, ruser, cmd, path_remsh); if (desc > 0) (void) signal(SIGPIPE, sighandler); #endif /* DIRECT_RCMD */