Re: Proftpd users

From: Arthur Corliss <acorliss@nevaeh-linux.org>
Date: Wed Apr 21 2004 - 08:19:09 AKDT

On Tue, 20 Apr 2004, Joshua Kugler wrote:

> In the SRPM there is a file entitled: proftpd-1.2.8-biarch-utmp.patch.bz2
> which contains:
>
> --- proftpd-1.2.8/src/log.c.biarch-utmp 2003-02-12 20:03:36.000000000 +0100
> +++ proftpd-1.2.8/src/log.c 2003-04-07 02:53:11.000000000 +0200
> @@ -171,7 +171,7 @@ int log_wtmp(char *line, const char *nam
> time(&t);
> utx.ut_tv.tv_sec = (time32_t)t;
> #else
> - time(&utx.ut_tv.tv_sec);
> + utx.ut_tv.tv_sec = time(NULL);
> #endif
> if (*name)
> utx.ut_type = USER_PROCESS;
> @@ -227,7 +227,7 @@ int log_wtmp(char *line, const char *nam
> sstrncpy(ut.ut_host,host,sizeof(ut.ut_host));
> #endif /* HAVE_UT_UT_HOST */
>
> - time(&ut.ut_time);
> + ut.ut_time = time(NULL);
> if (write(fd, (char *)&ut,sizeof(ut)) != sizeof(ut))
> ftruncate(fd,buf.st_size);
> } else {
>
> So it looks like they fix it, but I didn't take a look at your code, so I
> don't know if it is the same thing. Maybe they did send the patch to
> ProFTPd, and it wasn't accepted, or didn't solve the problem in the way they
> wanted to.

Nope, that doesn't fix it. You can see the only two lines they're changing
have to do with time fields. Of course, now I need to look at that and see if
it's still broken in 1.2.9, or whether the patch is logged in bugzilla.

:-P Bizarre. Send me the text of the log_wtmp function from your log.c,
would you? Patched or not.

        --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 Wed Apr 21 08:18:36 2004

This archive was generated by hypermail 2.1.8 : Wed Apr 21 2004 - 08:18:38 AKDT