summaryrefslogtreecommitdiff
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1997-01-28 07:15:44 +0000
committerDavid Greenman <dg@FreeBSD.org>1997-01-28 07:15:44 +0000
commit42165f24a1be4a3bb5065fc6abb51649483c349f (patch)
tree71ca3f8253390251d9c390404a85a5e86b9b7d85 /libexec/ftpd
parent05ec449cf0280fd3675093cc9cfab8afb337ebff (diff)
Brought in fixes from 1.30/1.31: fix for signal handler race condition
Notes
svn path=/stable/2.2/; revision=22059
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 2f02ff1f9b73..438d01362a33 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ftpd.c,v 1.25.2.1 1996/11/21 16:35:50 phk Exp $
+ * $Id: ftpd.c,v 1.25.2.2 1996/12/03 10:34:42 phk Exp $
*/
#if 0
@@ -1644,6 +1644,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);