| Summary: | LOG_FAC() is bogus | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Tony Finch <dot> | ||||
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Unspecified | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Tony Finch
2001-03-15 19:20:01 UTC
On Thu, Mar 15, 2001 at 11:57:27AM +0000, Tony Finch wrote: > > There was recently a problem with syslogd looping messages that were > printed to the console, because of the following code: > if (LOG_FAC(pri) == LOG_CONSOLE) > /* blah */; > But you can write ``LOG_FAC(pri) == LOG_FAC(LOG_CONSOLE)'' without breaking backwards compatibility. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age State Changed From-To: open->feedback I am weary at changing the sematics of LOC_FAC(), I'm afraid it will break too much existing code. Ruslan's suggestion seems to make sense to me, could you provide us with a patch based on it ? State Changed From-To: feedback->closed Automatic feedback timeout. If additional feedback that warrants the re-opening of this PR is available but not included in the audit trail, please include the feedback in a reply to this message (preserving the Subject line) and ask that the PR be re-opened. |