Re: Proftpd users

From: Joshua Kugler <jk@as.uaf.edu>
Date: Tue Apr 20 2004 - 16:28:29 AKDT

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.

j----- k-----

On Tuesday 20 April 2004 02:37 pm, Arthur Corliss wrote:
> > So...as the famous tech support phrase goes: it works fine on my end.
> > Mandrake patched version maybe? I've not looked at the source, spec, or
> > patch files in the SRPM for ProFTPD for Mandrake.
>
> Huh, if they patched it and didn't offer the patch to the proftpd
> maintainers, that wouldn't be friendly. If you can look at the source RPM
> and check out the log_wtmp function in log.c I'd be interested to see what
> modifications they made. The proftpd guys requested that I submit the
> patch to them in bugzilla, so I'd assume it'll be taken care of in the
> future, anyway.

-- 
Joshua Kugler
Assistant Systems Administrator
UAF Department of Mathematical Sciences
UAF LUG President
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Tue Apr 20 16:29:13 2004

This archive was generated by hypermail 2.1.8 : Tue Apr 20 2004 - 16:29:15 AKDT