[Bug 296315] reboot(8): LOG_CONS passed as facility instead of logopt in openlog(3)

[email protected]
Newsgroups gmane.os.freebsd.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296315

            Bug ID: 296315
           Summary: reboot(8): LOG_CONS passed as facility instead of
                    logopt in openlog(3)
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

reboot(8) is buggy on a Dell laptop and a GMKtec Nucbox while `shutdown -r`
works.  While trying to debug this I came across this issue:

reboot(8), halt(8), etc. all call openlog(3) with LOG_CONS OR'd into the
facility argument instead of logopt.

shutdown(8) and init(8) both use the correct form:
    openlog("shutdown", LOG_CONS, LOG_AUTH);

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.