CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]  2026/07/23 05:13:36

Modified files:
        libexec/getty  : main.c 

Log message:
getty(8): don't pass an empty string to login(1)

Entering some text and then deleting it would pass an empty string to
login(1) leading to an error message. Fix this by checking if name is
blank.

This was worked out by Piotr Durlej who submitted a proposed fix. I ended
up going with a simpler fix though. After I came up with my fix I noticed
that FreeBSD commited an identical change as part of a larger commit they
made in 2003.

Discussed with deraadt@

Reply via email to