Re: Proftpd users

From: Arthur Corliss <acorliss@nevaeh-linux.org>
Date: Mon Apr 19 2004 - 12:50:10 AKDT

On Mon, 19 Apr 2004, Joshua Kugler wrote:

> Really? I just tried it on my box, and it worked fine. Hostname if it could,
> IP if it couldn't.
>
> [root@deuel /home/joshua]# proftpd -v
> - ProFTPD Version 1.2.8
> [root@deuel /home/joshua]#
>
> This is on Mandrake 9.1.
>
> j----- k-----

Could you clarify? You tested 'last -i' on ftp sessions and the IP is
correctly reported? Looking at the source of 1.2.8p (2003/09) I see that the
offending code:

(starting on line 201)
#ifdef LINUX
    if (ip)
          memcpy(&ut.ut_addr,ip,sizeof(ut.ut_addr));

is still present in log.c. Given that the problem is that ip is p_in_addr_t
struct, it should be obvious that you can't copy the first four bytes of that
struct into an in_addr field.

        --Arthur Corliss
          Bolverk's Lair -- http://arthur.corlissfamily.org/
          Digital Mages -- http://www.digitalmages.com/
          "Live Free or Die, the Only Way to Live" -- NH State Motto
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Mon Apr 19 12:49:41 2004

This archive was generated by hypermail 2.1.8 : Mon Apr 19 2004 - 12:49:43 AKDT