Module Name: src
Committed By: martin
Date: Tue Oct 3 10:03:24 UTC 2023
Modified Files:
src/libexec/ftpd [netbsd-8]: extern.h ftpd.c
Log Message:
Pull up following revision(s) (requested by lukem in ticket #1901):
libexec/ftpd/extern.h: revision 1.65
libexec/ftpd/ftpd.c: revision 1.205
bump sizes
To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.63.22.1 src/libexec/ftpd/extern.h
cvs rdiff -u -r1.203.6.1 -r1.203.6.2 src/libexec/ftpd/ftpd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/ftpd/extern.h
diff -u src/libexec/ftpd/extern.h:1.63 src/libexec/ftpd/extern.h:1.63.22.1
--- src/libexec/ftpd/extern.h:1.63 Thu Mar 21 05:53:01 2013
+++ src/libexec/ftpd/extern.h Tue Oct 3 10:03:24 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.63 2013/03/21 05:53:01 lukem Exp $ */
+/* $NetBSD: extern.h,v 1.63.22.1 2023/10/03 10:03:24 martin Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -330,7 +330,7 @@ GLOBAL char proctitle[BUFSIZ]; /* initi
GLOBAL struct passwd *pw;
GLOBAL int quietmessages;
GLOBAL char remotehost[MAXHOSTNAMELEN+1];
-GLOBAL char remoteloghost[2 * MAXHOSTNAMELEN+1];
+GLOBAL char remoteloghost[2 * MAXHOSTNAMELEN + 4];
GLOBAL off_t restart_point;
GLOBAL char tmpline[FTP_BUFLEN];
GLOBAL int type;
Index: src/libexec/ftpd/ftpd.c
diff -u src/libexec/ftpd/ftpd.c:1.203.6.1 src/libexec/ftpd/ftpd.c:1.203.6.2
--- src/libexec/ftpd/ftpd.c:1.203.6.1 Tue Oct 3 09:54:24 2023
+++ src/libexec/ftpd/ftpd.c Tue Oct 3 10:03:24 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: ftpd.c,v 1.203.6.1 2023/10/03 09:54:24 martin Exp $ */
+/* $NetBSD: ftpd.c,v 1.203.6.2 2023/10/03 10:03:24 martin Exp $ */
/*
* Copyright (c) 1997-2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@ __COPYRIGHT("@(#) Copyright (c) 1985, 19
#if 0
static char sccsid[] = "@(#)ftpd.c 8.5 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: ftpd.c,v 1.203.6.1 2023/10/03 09:54:24 martin Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.203.6.2 2023/10/03 10:03:24 martin Exp $");
#endif
#endif /* not lint */
@@ -2863,7 +2863,7 @@ logremotehost(struct sockinet *who)
{
#if defined(HAVE_SOCKADDR_SNPRINTF)
- char abuf[BUFSIZ];
+ char abuf[MAXHOSTNAMELEN];
#endif
struct sockaddr *sa = (struct sockaddr *)&who->si_su;