From 1b627f0773f50996e792ce24e79c76dcfaa5137b Mon Sep 17 00:00:00 2001 From: Nuno Antunes Date: Sun, 27 Jul 2008 17:52:07 +0000 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/tcsh-6/tc.func.c b/contrib/tcsh-6/tc.func.c index e2db430e9d..f04a5a4ca0 100644 --- a/contrib/tcsh-6/tc.func.c +++ b/contrib/tcsh-6/tc.func.c @@ -632,7 +632,7 @@ xgetpass(const char *prm) } strbuf_terminate(&pass); - cleanup_until(&sa); + cleanup_until(&osa); return pass.s; } -- 2.41.0