mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Fix ypxfr so that it can be run from cron.
Patch submitted by: Dan Nelson <dnelson@emsphone.com>
This commit is contained in:
parent
dc06ef2775
commit
f9d553adf5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user