Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/libexec/ftpd pullup rev. 1.105 from trunk (approved by ...



details:   https://anonhg.NetBSD.org/src/rev/aad83f4b37b7
branches:  netbsd-1-5
changeset: 489560:aad83f4b37b7
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu Sep 28 18:37:42 2000 +0000

description:
pullup rev. 1.105 from trunk (approved by thorpej):
call setlogin() before dropping root privileges, so that process
would have correct p_login value

diffstat:

 libexec/ftpd/ftpd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 6ce397ac0300 -r aad83f4b37b7 libexec/ftpd/ftpd.c
--- a/libexec/ftpd/ftpd.c       Thu Sep 28 16:42:55 2000 +0000
+++ b/libexec/ftpd/ftpd.c       Thu Sep 28 18:37:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpd.c,v 1.95.2.3 2000/07/25 08:38:39 lukem Exp $      */
+/*     $NetBSD: ftpd.c,v 1.95.2.4 2000/09/28 18:37:42 jdolecek Exp $   */
 
 /*
  * Copyright (c) 1997-2000 The NetBSD Foundation, Inc.
@@ -109,7 +109,7 @@
 #if 0
 static char sccsid[] = "@(#)ftpd.c     8.5 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: ftpd.c,v 1.95.2.3 2000/07/25 08:38:39 lukem Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.95.2.4 2000/09/28 18:37:42 jdolecek Exp $");
 #endif
 #endif /* not lint */
 
@@ -1018,6 +1018,7 @@
                }
                break;
        }
+       setlogin(pw->pw_name);
        if (dropprivs ||
            (curclass.type != CLASS_REAL && 
            ntohs(ctrl_addr.su_port) > IPPORT_RESERVED + 1)) {



Home | Main Index | Thread Index | Old Index