From 3771fb912e3ab56083afddc78c3047498cf4fd02 Mon Sep 17 00:00:00 2001 From: mrg Date: Thu, 23 Jan 1997 05:57:55 +0000 Subject: [PATCH] set transflag to 0 in dologout, to prevent a SIGURG taking us back to the main loop. --- libexec/ftpd/ftpd.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 67d310563f29..5260ab7ea4ea 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ +/* $NetBSD: ftpd.c,v 1.16 1997/01/23 05:57:55 mrg Exp $ */ /* * Copyright (c) 1985, 1988, 1990, 1992, 1993, 1994 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ftpd.c 8.4 (Berkeley) 4/16/94"; #else -static char rcsid[] = "$NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $"; +static char rcsid[] = "$NetBSD: ftpd.c,v 1.16 1997/01/23 05:57:55 mrg Exp $"; #endif #endif /* not lint */ @@ -1390,6 +1390,11 @@ void dologout(status) int status; { + /* + * Prevent reception of SIGURG from resulting in a resumption + * back to the main program loop. + */ + transflag = 0; if (logged_in) { (void) seteuid((uid_t)0);