Missing long in syslog.c

Steven M. Schultz sms at wlv.imsd.contel.com
Sat Dec 30 15:15:58 AEST 1989


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);



More information about the Comp.bugs.2bsd mailing list