From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 4 01:50:17 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24DB237B401 for ; Mon, 4 Aug 2003 01:50:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A404943F75 for ; Mon, 4 Aug 2003 01:50:16 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h748oGUp078454 for ; Mon, 4 Aug 2003 01:50:16 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h748oG8T078452; Mon, 4 Aug 2003 01:50:16 -0700 (PDT) Date: Mon, 4 Aug 2003 01:50:16 -0700 (PDT) Message-Id: <200308040850.h748oG8T078452@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Alex Vasylenko Subject: Re: ports/55229: New port: ftp/tnftpd (obsoletes ftp/lukemftpd) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alex Vasylenko List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2003 08:50:17 -0000 The following reply was made to PR ports/55229; it has been noted by GNATS. From: Alex Vasylenko To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org Cc: Subject: Re: ports/55229: New port: ftp/tnftpd (obsoletes ftp/lukemftpd) Date: Mon, 4 Aug 2003 01:45:30 -0700 --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Attached is an update that enables utmp/wtmp support (replaces all files/patch-*) regards, -- Alex. --AqsLC8rIMeq19msA Content-Type: application/x-shar Content-Disposition: attachment; filename="tnftpd-files.shar" Content-Transfer-Encoding: quoted-printable # This is a shell archive. Save it in a file, remove anything before=0A# t= his line, and then unpack it by entering "sh file". Note, it may=0A# creat= e directories; files and directories will be owned by you and=0A# have defa= ult permissions.=0A#=0A# This archive contains:=0A#=0A# files/patch-src-Mak= efile.in=0A# files/patch-src-logutmp.c=0A# files/patch-src-logwtmp.c=0A# fi= les/patch-tnftpd.h=0A#=0Aecho x - files/patch-src-Makefile.in=0Ased 's/^X//= ' >files/patch-src-Makefile.in << 'END-of-files/patch-src-Makefile.in'=0AX-= -- src/Makefile.in-orig Sun Dec 8 05:05:36 2002=0AX+++ src/Makefile.in Mon= Aug 4 00:49:28 2003=0AX@@ -22,8 +22,7 @@=0AX INSTALL =3D @INSTALL@=0AX = =0AX PROG =3D tnftpd=0AX-OBJS =3D cmds.o conf.o ftpd.o ftpcmd.o popen.o @LS= OBJS@=0AX-# removed: logutmp.o logwtmp.o=0AX+OBJS =3D cmds.o conf.o ftpd.o = ftpcmd.o popen.o logutmp.o logwtmp.o @LSOBJS@=0AX =0AX all: ${PROG}=0AX =0A= END-of-files/patch-src-Makefile.in=0Aecho x - files/patch-src-logutmp.c=0As= ed 's/^X//' >files/patch-src-logutmp.c << 'END-of-files/patch-src-logutmp.c= '=0AX--- src/logutmp.c-orig Sun Feb 23 22:38:44 2003=0AX+++ src/logutmp.c M= on Aug 4 01:07:20 2003=0AX@@ -43,7 +43,6 @@=0AX #include =0AX #i= nclude =0AX #include =0AX-#include =0AX =0AX #inc= lude "extern.h"=0AX =0AEND-of-files/patch-src-logutmp.c=0Aecho x - files/pa= tch-src-logwtmp.c=0Ased 's/^X//' >files/patch-src-logwtmp.c << 'END-of-file= s/patch-src-logwtmp.c'=0AX--- src/logwtmp.c-orig Sun Feb 23 22:38:44 2003= =0AX+++ src/logwtmp.c Mon Aug 4 01:07:20 2003=0AX@@ -57,7 +57,8 @@=0AX #in= clude =0AX #include =0AX #include =0AX-#include <= util.h>=0AX+#include =0AX+#include =0AX =0AX #ifdef = KERBEROS5=0AX #include =0AX@@ -77,6 +78,26 @@=0AX {=0AX struc= t utmp ut;=0AX struct stat buf;=0AX+=0AX+ if (strlen(host) > UT_HOSTSIZE) = {=0AX+ struct addrinfo hints, *res;=0AX+ int error;=0AX+ static char hos= tbuf[BUFSIZ];=0AX+=0AX+ memset(&hints, 0, sizeof(hints));=0AX+ hints.ai_f= amily =3D PF_UNSPEC;=0AX+ error =3D getaddrinfo(host, NULL, &hints, &res);= =0AX+ if (error)=0AX+ host =3D "invalid hostname";=0AX+ else {=0AX+ g= etnameinfo(res->ai_addr, res->ai_addrlen,=0AX+ hostbuf, sizeof(hostbuf),= NULL, 0,=0AX+ NI_NUMERICHOST);=0AX+ host =3D hostbuf;=0AX+ if (strl= en(host) > UT_HOSTSIZE)=0AX+ host[UT_HOSTSIZE] =3D '\0';=0AX+ }=0AX+ }= =0AX =0AX if (fd < 0 && (fd =3D open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) < = 0)=0AX return;=0AEND-of-files/patch-src-logwtmp.c=0Aecho x - files/patch-= tnftpd.h=0Ased 's/^X//' >files/patch-tnftpd.h << 'END-of-files/patch-tnftpd= .h'=0AX--- tnftpd.h.orig Wed Feb 26 19:16:13 2003=0AX+++ tnftpd.h Mon Aug = 4 01:19:41 2003=0AX@@ -404,6 +404,10 @@=0AX #define SECSPERDAY 86400=0AX #d= efine TM_YEAR_BASE 1900=0AX =0AX-#if ! defined(LOGIN_NAME_MAX)=0AX+#if defi= ned(MAXLOGNAME)=0AX+# define LOGIN_NAME_MAX MAXLOGNAME=0AX+#elif ! defined(= LOGIN_NAME_MAX)=0AX # define LOGIN_NAME_MAX (9)=0AX #endif=0AX+=0AX+#define= SUPPORT_UTMP=0AEND-of-files/patch-tnftpd.h=0Aexit=0A=0A --AqsLC8rIMeq19msA--