HomeFreeBSD

usr.bin/login: send errors to console if syslog isn't running

Description

usr.bin/login: send errors to console if syslog isn't running

I was debugging why login(1) wasn't working as expected on a minimal
MFS_ROOT disk image. This image doesn't have syslogd running so the
warnings were lost and I had to use GDB to find out why login(1) was
failing (missing PAM libraries) instead of being able to see it in
the console output.

MFC after: 1 week
Reviewed By: pfg
Differential Revision: https://reviews.freebsd.org/D30892

(cherry picked from commit 4d552825ecebecd6c95a995c0b314b09936121b5)

Details

Provenance
arichardsonAuthored on Jul 6 2021, 9:50 AM
Reviewer
pfg
Differential Revision
D30892: usr.bin/login: send errors to console if syslog isn't running
Parents
rGe4c2ffe93205: usr.bin/sort: Avoid UBSan errors
Branches
Unknown
Tags
Unknown