Subject: bin/1225: amd(8) is too noisy when NIS isn't running.
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: None <mrg@mame.mu.OZ.AU>
List: netbsd-bugs
Date: 07/13/1995 09:05:07
>Number:         1225
>Category:       bin
>Synopsis:       amd(8) is too noisy when NIS isn't running.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 13 09:05:05 1995
>Originator:     matthew green
>Organization:
bozotic softwar foundation
>Release:        010795
>Environment:
System: NetBSD splode.eterna.com.au 1.0A NetBSD 1.0A (_splode_) #235: Thu Jun 22 22:40:35 EST 1995 mrg@splode.eterna.com.au:/orb/q/build/src/sys/arch/sparc/compile/_splode_ sparc


>Description:
	
	amd(8) is noisy about the fact that NIS isn't running when it starts
	up, logging this fact to the console.  that's all very well, but i
	*know* that NIS isn't running.  this is annoying.

>How-To-Repeat:

	run amd ...

>Fix:

	the patch below changes the warning level to LOG_INFO


*** info_nis.c.orig	Thu Jul 13 22:43:08 1995
--- info_nis.c	Thu Jul 13 22:43:17 1995
***************
*** 69,75 ****
  
  	if (!*default_domain) {
  		nis_not_running = 1;
! 		plog(XLOG_WARNING, "NIS domain name is not set.  NIS ignored.");
  		return ENOENT;
  	}
  
--- 69,75 ----
  
  	if (!*default_domain) {
  		nis_not_running = 1;
! 		plog(XLOG_INFO, "NIS domain name is not set.  NIS ignored.");
  		return ENOENT;
  	}
  
>Audit-Trail:
>Unformatted: