git: reboot(8): Fix openlog(3) calls

Aaron LI aly at crater.dragonflybsd.org
Fri Jul 3 04:35:19 PDT 2026


commit 3c3f4f8304107e985d4e69dd63ac4beb96c1d4ff
Author: Ricardo Branco <rbranco at suse.de>
Date:   Tue Jun 30 15:09:28 2026 +0200

    reboot(8): 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.
    
    Signed-off-by: Ricardo Branco <rbranco at suse.de>
    GitHub-PR: #37

Summary of changes:
 sbin/reboot/reboot.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3c3f4f8304107e985d4e69dd63ac4beb96c1d4ff


-- 
DragonFly BSD source repository


More information about the Commits mailing list