🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.2bsd
Article #262

Missing long in syslog.c

#262
From: Steven M. Schultz
Date: Sat, 30 Dec 1989 04:15
33 lines
1281 bytes
Subject: Missing long indicator in syslog.c
Index:	lib/libc/gen/syslog.c 2.10BSD

Description:
	Signal masks are long, not int.  There is a missing 'L' in a
	sigblock() call in syslog.c

Repeat-By:
	Examination of the source.

Fix:
	Apply the following patch and reinstall syslog() in libc.a and
	libc_p.a

*** syslog.c.old	Sun Jul  3 21:45:31 1988
--- syslog.c	Fri Dec 29 20:02:38 1989
***************
*** 144,150 ****
  		int fd;
  
  		signal(SIGALRM, SIG_DFL);
! 		sigsetmask(sigblock(0) & ~sigmask(SIGALRM));
  		alarm(5);
  		fd = open(ctty, O_WRONLY);
  		alarm(0);
--- 144,150 ----
  		int fd;
  
  		signal(SIGALRM, SIG_DFL);
! 		sigsetmask(sigblock(0L) & ~sigmask(SIGALRM));
  		alarm(5);
  		fd = open(ctty, O_WRONLY);
  		alarm(0);
Technical Details
Message-ID: <43183@wlbr.IMSD.CONTEL.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!think!ames!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!mahendo!wlbr!wlv!sms

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!think!ames!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!mahendo!wlbr!wlv!sms
From: sms@wlv.imsd.contel.com (Steven M. Schultz)
Newsgroups: comp.bugs.2bsd
Subject: Missing long in syslog.c
Message-ID: <43183@wlbr.IMSD.CONTEL.COM>
Date: 30 Dec 89 04:15:58 GMT
Sender: news@wlbr.IMSD.CONTEL.COM
Reply-To: sms@wlv.imsd.contel.com (Steven M. Schultz)
Organization: Contel Federal Systems
Lines: 33