[Bug 296315] reboot(8): LOG_CONS passed as facility instead of logopt in openlog(3)
[email protected] Wed, 08 Jul 2026 05:17:26 +0000
| Newsgroups | gmane.os.freebsd.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296315 --- Comment #13 from [email protected] --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=f723b28c9663b70045e6db07f9fe72422a609c16 commit f723b28c9663b70045e6db07f9fe72422a609c16 Author: Ricardo Branco <[email protected]> AuthorDate: 2026-06-27 10:04:48 +0000 Commit: Warner Losh <[email protected]> CommitDate: 2026-07-08 05:16:01 +0000 reboot: fix openlog(3) calls LOG_CONS was OR'd into the facility argument instead of logopt, leaving logopt as 0. The correct call is openlog(ident, LOG_CONS, LOG_AUTH), as shutdown(8) and init(8) already do. PR: 296315 Signed-off-by: Ricardo Branco <[email protected]> Reviewed by: imp, des Pull Request: https://github.com/freebsd/freebsd-src/pull/2300 sbin/reboot/reboot.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- You are receiving this mail because: You are the assignee for the bug.