Date: Fri, 6 Jun 2003 07:36:41 -0700 (PDT) From: Yar Tikhiy <yar@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/libexec/getty main.c Message-ID: <200306061436.h56EafwP034713@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
yar 2003/06/06 07:36:41 PDT
FreeBSD src repository
Modified files:
libexec/getty main.c
Log:
Fix some minor bugs, namely:
- Initialize "rval", which would be used uninitialized
if al or pl options were set.
- Don't pass an empty string to login(1) as a user name
(this could be triggered by entering a name and then killing it
with backspace or ^U.)
- Don't loop endlessly if the al option specifies a bogus (i.e.,
not alphanumeric) auto-login name.
- Don't pass a bogus user name to login(1) if a good name were
entered and then killed with ^U.
- Exit with status 0, not 1, on receiving an EOF character,
since it's not a error condition.
MFC after: 1 week
Revision Changes Path
1.39 +14 -3 src/libexec/getty/main.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306061436.h56EafwP034713>
