Fix tcsh crash when autologout is set.
authorNuno Antunes <nant@dragonflybsd.org>
Sun, 27 Jul 2008 17:52:07 +0000 (17:52 +0000)
committerNuno Antunes <nant@dragonflybsd.org>
Sun, 27 Jul 2008 17:52:07 +0000 (17:52 +0000)
commit1b627f0773f50996e792ce24e79c76dcfaa5137b
tree465fbde9112a81c832f0d7e738f898ee81544988
parent55d3a838be2c2bbcbb11ed511193c937b49d1556
Fix tcsh crash when autologout is set.

Note that even with this fix, inserting the correct password after the
autologout timer expires will only unlock the session for the root
user (i don't know why). Any other user will not get its password
accepted as correct, but at least it won't crash.

Obtained from: FreeBSD (PR bin/124191)
Discussed with: matthias
contrib/tcsh-6/tc.func.c