Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/mountd If -d (debug mode) is specified on the comma...



details:   https://anonhg.NetBSD.org/src/rev/6a39cd29e6ed
branches:  trunk
changeset: 574843:6a39cd29e6ed
user:      briggs <briggs%NetBSD.org@localhost>
date:      Tue Mar 15 04:54:59 2005 +0000

description:
If -d (debug mode) is specified on the command line, include
LOG_PERROR in openlog() to send log output to stderr as well.
Suggested by Darrin Jewell.

diffstat:

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

diffs (27 lines):

diff -r 5d4f8567649e -r 6a39cd29e6ed usr.sbin/mountd/mountd.c
--- a/usr.sbin/mountd/mountd.c  Tue Mar 15 02:37:37 2005 +0000
+++ b/usr.sbin/mountd/mountd.c  Tue Mar 15 04:54:59 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mountd.c,v 1.92 2005/01/17 15:20:35 wiz Exp $   */
+/*     $NetBSD: mountd.c,v 1.93 2005/03/15 04:54:59 briggs Exp $        */
 
 /*
  * Copyright (c) 1989, 1993
@@ -47,7 +47,7 @@
 #if 0
 static char     sccsid[] = "@(#)mountd.c  8.15 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: mountd.c,v 1.92 2005/01/17 15:20:35 wiz Exp $");
+__RCSID("$NetBSD: mountd.c,v 1.93 2005/03/15 04:54:59 briggs Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -337,7 +337,7 @@
                exname = *argv;
        else
                exname = _PATH_EXPORTS;
-       openlog("mountd", LOG_PID, LOG_DAEMON);
+       openlog("mountd", LOG_PID | (debug ? LOG_PERROR : 0), LOG_DAEMON);
 
        s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP);
        if (s < 0)



Home | Main Index | Thread Index | Old Index