summaryrefslogtreecommitdiffstats
path: root/libexec/ypxfr
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-05-10 20:55:29 +0000
committerwpaul <wpaul@FreeBSD.org>1999-05-10 20:55:29 +0000
commit7901189d759f6e8487beccf32780bf8255fbf26d (patch)
treedda47e7cb729f06fe59391b4ff8652ae1f68879e /libexec/ypxfr
parent04f69f7c49b3ac7d11fe3366ab392090a5fdf36b (diff)
downloadFreeBSD-src-7901189d759f6e8487beccf32780bf8255fbf26d.zip
FreeBSD-src-7901189d759f6e8487beccf32780bf8255fbf26d.tar.gz
Fix ypxfr so that it can be run from cron.
Patch submitted by: Dan Nelson <dnelson@emsphone.com>
Diffstat (limited to 'libexec/ypxfr')
-rw-r--r--libexec/ypxfr/ypxfr_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/ypxfr/ypxfr_main.c b/libexec/ypxfr/ypxfr_main.c
index d2a9f85..1f3076f 100644
--- a/libexec/ypxfr/ypxfr_main.c
+++ b/libexec/ypxfr/ypxfr_main.c
@@ -32,7 +32,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: ypxfr_main.c,v 1.11 1997/12/08 07:49:54 charnier Exp $";
+ "$Id: ypxfr_main.c,v 1.12 1998/08/02 16:44:18 bde Exp $";
#endif /* not lint */
#include <errno.h>
@@ -81,14 +81,14 @@ static void ypxfr_exit(retval, temp)
}
}
- if (_rpcpmstart) {
+ if (ypxfr_prognum) {
timeout.tv_sec = 20;
timeout.tv_usec = 0;
if ((clnt = clntudp_create(&ypxfr_callback_addr, ypxfr_prognum,
1, timeout, &sock)) == NULL) {
- yp_error("%s", clnt_spcreateerror("failed to \
-establish callback handle"));
+ yp_error("%s", clnt_spcreateerror("failed to "
+ "establish callback handle"));
exit(1);
}
OpenPOWER on IntegriCloud