🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #1376

4.3BSD-tahoe syslog routine ignores setlogmask calls

#1376
From: Tim Seaver
Date: Sat, 15 Apr 1989 02:07
33 lines
1484 bytes
Subject: 4.3BSD-tahoe syslog routine ignores setlogmask calls
Index:	lib/libc/gen/syslog.c 4.3BSD-tahoe

Description:
	The 4.3BSD-tahoe setlogmask library routine has no effect due to
	a coding error in the syslog routine.

Repeat-By:
	Set the syslog log mask to something other than the default
	with a call to setlogmask. Log something at a disabled priority
	with syslog. Note that the message is logged.
	
Fix:
	*** /usr/src/lib/libc/gen/syslog.c	Fri Apr 14 15:16:40 1989
	--- /tahoe/usr/src/lib/libc/gen/syslog.c	Mon Jun 27 20:34:24 1988
	***************
	*** 76,82 ****
	  
	  	/* see if we should just throw out this message */
	  	if ((unsigned) LOG_FAC(pri) >= LOG_NFACILITIES ||
	! 	    (LOG_MASK(LOG_PRI(pri)) & LogMask) == 0 ||
	  	    (pri &~ (LOG_PRIMASK|LOG_FACMASK)) != 0)
	  		return;
	  	if (LogFile < 0 || !connected)
	--- 76,82 ----
	  
	  	/* see if we should just throw out this message */
	  	if ((unsigned) LOG_FAC(pri) >= LOG_NFACILITIES ||
	! 	    LOG_MASK(LOG_PRI(pri)) == 0 ||
	  	    (pri &~ (LOG_PRIMASK|LOG_FACMASK)) != 0)
	  		return;
	  	if (LogFile < 0 || !connected)
Technical Details
Message-ID: <1162@speedy.mcnc.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!mcnc!tas

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!mcnc!tas
From: tas@mcnc.org (Tim Seaver)
Newsgroups: comp.bugs.4bsd
Subject: 4.3BSD-tahoe syslog routine ignores setlogmask calls
Message-ID: <1162@speedy.mcnc.org>
Date: 15 Apr 89 02:07:40 GMT
Organization: Microelectronics Center of NC; RTP, NC
Lines: 33