diff options
author | yar <yar@FreeBSD.org> | 2003-06-06 14:36:41 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2003-06-06 14:36:41 +0000 |
commit | ed74f4db3db61d7cc5afd1308077a87a2781331c (patch) | |
tree | 8dc44c3986f4a3e3ad40a3a2986dba5618a4bf7e /sys/kern/kern_kthread.c | |
parent | a2c945daf3d8e8bc56ea90992166d151d38a9215 (diff) | |
download | FreeBSD-src-ed74f4db3db61d7cc5afd1308077a87a2781331c.zip FreeBSD-src-ed74f4db3db61d7cc5afd1308077a87a2781331c.tar.gz |
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
Diffstat (limited to 'sys/kern/kern_kthread.c')
0 files changed, 0 insertions, 0 deletions