Source-Changes-HG archive

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

[src/netbsd-1-6]: src/libexec/ftpd Pull up revision 1.142 (requested by lukem...



details:   https://anonhg.NetBSD.org/src/rev/edb2fad4b2fe
branches:  netbsd-1-6
changeset: 529103:edb2fad4b2fe
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Sep 30 13:07:15 2002 +0000

description:
Pull up revision 1.142 (requested by lukem in ticket #843):
Use LOGIN_NAME_MAX instead of `10' for the size of the curname[] buffer.
Allows /etc/ftpchroot to work correctly for usernames > 9 characters.
Noted by Max Khon in the freebsd-stable mailing list, via Thomas Vogt in
private email.

diffstat:

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

diffs (27 lines):

diff -r 55928a7a00b2 -r edb2fad4b2fe libexec/ftpd/ftpd.c
--- a/libexec/ftpd/ftpd.c       Mon Sep 30 13:05:29 2002 +0000
+++ b/libexec/ftpd/ftpd.c       Mon Sep 30 13:07:15 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpd.c,v 1.138 2002/02/11 11:45:07 lukem Exp $ */
+/*     $NetBSD: ftpd.c,v 1.138.2.1 2002/09/30 13:07:15 lukem Exp $     */
 
 /*
  * Copyright (c) 1997-2001 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.138 2002/02/11 11:45:07 lukem Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.138.2.1 2002/09/30 13:07:15 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -563,7 +563,7 @@
 static int     login_attempts; /* number of failed login attempts */
 static int     askpasswd;      /* had USER command, ask for PASSwd */
 static int     permitted;      /* USER permitted */
-static char    curname[10];    /* current USER name */
+static char    curname[LOGIN_NAME_MAX];        /* current USER name */
 
 /*
  * USER command.



Home | Main Index | Thread Index | Old Index