set transflag to 0 in dologout, to prevent a SIGURG taking us back to the main loop.
This commit is contained in:
parent
7f50ef911a
commit
3771fb912e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user