Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/ypserv/ypserv use "ypserv" instead of __progname as...



details:   https://anonhg.NetBSD.org/src/rev/17e3baed6dd5
branches:  trunk
changeset: 502040:17e3baed6dd5
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jan 11 00:34:51 2001 +0000

description:
use "ypserv" instead of __progname as ident arg to openlog

diffstat:

 usr.sbin/ypserv/ypserv/ypserv.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 99a139c502a6 -r 17e3baed6dd5 usr.sbin/ypserv/ypserv/ypserv.c
--- a/usr.sbin/ypserv/ypserv/ypserv.c   Thu Jan 11 00:16:11 2001 +0000
+++ b/usr.sbin/ypserv/ypserv/ypserv.c   Thu Jan 11 00:34:51 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ypserv.c,v 1.12 2000/12/08 20:08:43 thorpej Exp $      */
+/*     $NetBSD: ypserv.c,v 1.13 2001/01/11 00:34:51 lukem Exp $        */
 
 /*
  * Copyright (c) 1994 Mats O Jansson <moj%stacken.kth.se@localhost>
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ypserv.c,v 1.12 2000/12/08 20:08:43 thorpej Exp $");
+__RCSID("$NetBSD: ypserv.c,v 1.13 2001/01/11 00:34:51 lukem Exp $");
 #endif
 
 #include <sys/types.h>
@@ -317,7 +317,7 @@
        if (foreground == 0 && daemon(0, 0))
                err(1, "can't detach");
 
-       openlog(__progname, LOG_PID, LOG_DAEMON);
+       openlog("ypserv", LOG_PID, LOG_DAEMON);
        syslog(LOG_INFO, "starting");
        pidfile(NULL);
 



Home | Main Index | Thread Index | Old Index