home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / bsd / 10689 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  1.2 KB

  1. Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!news
  2. From: andrew@werple.apana.org.au (Andrew Herbert)
  3. Newsgroups: comp.unix.bsd
  4. Subject: syslog() library function bug - FIX
  5. Date: 28 Dec 1992 23:43:58 +1100
  6. Organization: werple public-access unix, Melbourne
  7. Lines: 27
  8. Message-ID: <1hmsqeINN1kg@werple.apana.org.au>
  9. NNTP-Posting-Host: werple.apana.org.au
  10.  
  11. The syslog library function in 386BSD has a bug that prevents logging to the
  12. authpriv and cron facilities by /usr/bin/login and crond (if you've enabled
  13. this) respectively.  No doubt other combinations of facility and priority were
  14. also affected.
  15.  
  16. enjoy,
  17. Andrew
  18.  
  19. *** /usr/src/lib/libc/gen/syslog.c.unhacked    Thu Jun 27 11:53:08 1991
  20. --- /usr/src/lib/libc/gen/syslog.c    Mon Dec 28 23:37:36 1992
  21. ***************
  22. *** 99,105 ****
  23.   
  24.       /* check for invalid bits or no priority set */
  25.       if (!LOG_PRI(pri) || (pri &~ (LOG_PRIMASK|LOG_FACMASK)) ||
  26. !         !(LOG_MASK(pri) & LogMask))
  27.           return;
  28.   
  29.       saved_errno = errno;
  30. --- 99,105 ----
  31.   
  32.       /* check for invalid bits or no priority set */
  33.       if (!LOG_PRI(pri) || (pri &~ (LOG_PRIMASK|LOG_FACMASK)) ||
  34. !         !(LOG_MASK(LOG_PRI(pri)) & LogMask))
  35.           return;
  36.   
  37.       saved_errno = errno;
  38.