use explicit name rather than __progname in openlog
This commit is contained in:
parent
7890e93e47
commit
13220245b2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rarpd.c,v 1.40 2000/11/20 14:59:30 is Exp $ */
|
||||
/* $NetBSD: rarpd.c,v 1.41 2001/01/11 01:43:25 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
|
@ -28,7 +28,7 @@ __COPYRIGHT(
|
|||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: rarpd.c,v 1.40 2000/11/20 14:59:30 is Exp $");
|
||||
__RCSID("$NetBSD: rarpd.c,v 1.41 2001/01/11 01:43:25 lukem Exp $");
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -143,7 +143,7 @@ main(argc, argv)
|
|||
char *ifname, *hostname;
|
||||
|
||||
/* All error reporting is done through syslogs. */
|
||||
openlog(__progname, LOG_PID, LOG_DAEMON);
|
||||
openlog("rarpd", LOG_PID, LOG_DAEMON);
|
||||
|
||||
opterr = 0;
|
||||
while ((op = getopt(argc, argv, "adfl")) != -1) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rbootd.c,v 1.11 2000/12/20 01:30:26 cgd Exp $ */
|
||||
/* $NetBSD: rbootd.c,v 1.12 2001/01/11 01:43:45 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1992 The University of Utah and the Center
|
||||
|
@ -57,7 +57,7 @@ __COPYRIGHT(
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)rbootd.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: rbootd.c,v 1.11 2000/12/20 01:30:26 cgd Exp $");
|
||||
__RCSID("$NetBSD: rbootd.c,v 1.12 2001/01/11 01:43:45 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -144,7 +144,7 @@ main(argc, argv)
|
|||
(void) signal(SIGUSR2, DebugOff);
|
||||
}
|
||||
|
||||
openlog(__progname, LOG_PID, LOG_DAEMON);
|
||||
openlog("rbootd", LOG_PID, LOG_DAEMON);
|
||||
|
||||
/*
|
||||
* If no interface was specified, get one now.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bootparamd.c,v 1.36 2000/07/20 06:21:51 thorpej Exp $ */
|
||||
/* $NetBSD: bootparamd.c,v 1.37 2001/01/11 01:44:23 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* This code is not copyright, and is placed in the public domain.
|
||||
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: bootparamd.c,v 1.36 2000/07/20 06:21:51 thorpej Exp $");
|
||||
__RCSID("$NetBSD: bootparamd.c,v 1.37 2001/01/11 01:44:23 lukem Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -104,9 +104,9 @@ main(argc, argv)
|
|||
case 's':
|
||||
dolog = 1;
|
||||
#ifndef LOG_DAEMON
|
||||
openlog(__progname, 0, 0);
|
||||
openlog("rpc.bootparamd", 0, 0);
|
||||
#else
|
||||
openlog(__progname, 0, LOG_DAEMON);
|
||||
openlog("rpc.bootparamd", 0, LOG_DAEMON);
|
||||
setlogmask(LOG_UPTO(LOG_NOTICE));
|
||||
#endif
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue