ports/55229: New port: ftp/tnftpd (obsoletes ftp/lukemftpd)
Alex Vasylenko
lxv at send-pr.sink.omut.org
Mon Aug 4 08:50:17 UTC 2003
The following reply was made to PR ports/55229; it has been noted by GNATS.
From: Alex Vasylenko <lxv at send-pr.sink.omut.org>
To: FreeBSD-gnats-submit at FreeBSD.org, freebsd-ports-bugs at 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 <ttyent.h>=0AX #i=
nclude <unistd.h>=0AX #include <utmp.h>=0AX-#include <util.h>=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 <time.h>=0AX #include <unistd.h>=0AX #include <utmp.h>=0AX-#include <=
util.h>=0AX+#include <netdb.h>=0AX+#include <sys/socket.h>=0AX =0AX #ifdef =
KERBEROS5=0AX #include <krb5/krb5.h>=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--
More information about the freebsd-ports-bugs
mailing list