Subject: patch to vr17

From: Iouri Kharon <[email-masked]>
Date: Mon, 3 May 1999 19:00:51 +0400

Hi !

  This small pacth correct two small buggs and add 3 capabilities :).

  1. If clien connect to wu-ftpd from dial-in start passive upload and
     connect breaks (phisically), data-sockest hangs for ever. Standart
     method for this situation is to use tcp-wrapper with option KeepAlive,
     but it not workin with wu-ftp,- it set SO_KEEPALIVE for command socket,
     but not set to data-socket.
     This patch has set SO_KEEPALIVE to all sockets used by wu-wtpd, if
     ftpaccess contain directive
               KeeyAlive        yes
     or
               KeepAlive        on

  2. Add capabilities in ftpaccess - name and path of master xferlog file.
     Sintacsis is:
                  xferlog          /var/adm/myxferlog
     If this directive is omitted used old method (constant _XFERLOG_PATH
     constant of translation time).

  3. When system use the traffic-accounting subsistem You need in
  possibillity to switch log-files without stopping servers. The named or
  unnamed pipes is usually used for resolving this problem. For instance
  apache used rotatelog, and syslogd used fifo created by mkfifo.
  If we want to use this method in wu-ftpd, we mast open xferlog file
  in non-blocked mode and process EAGAIN write-error.
     This patch resolve this problem. When xferlog is opened to pipe (for
  example created by mkfifo) it open in non-blocked mode and wheh
  write-error EAGAIN raised wu-ftpd write message to syslog.
     The diffirence from apache and syslogd is that You do not need to use
 special prefix for file-name, this patch detect type of file
 automatically.
 If You want I can send small rotatelog daemon (for ALL daemons) to You :).

 Finally I make 2 small correction in makefile.lnx,- when You translate
 wu-ftpd not for RedHat, but for Slackware linux.

Best regards,
 Iouri                          mailto:[email-masked]

---

From: Gregory A Lundberg <[email-masked]>
Date: Mon, 3 May 1999 11:59:07 -0400 (EDT)

>      ftpaccess contain directive

I have been considering this for a future feature.  Thanks.

>      constant of translation time).

Another idea I've been considering.

I'll may change your ftpaccess syntax for both of these to better fit with
other things I'm thinking about.

>  If You want I can send small rotatelog daemon (for ALL daemons) to You :).

Thanks, I already have such a daemon which I use extensively.  I also have
patches to syslogd and a replacement for Apache's rotatelog which I use to
rotate files at exactly midnight, local time, without any signals or
having to stop and restart any services.  I'd be happy to take a look at
what you've done, however.

I have to agree the way Redhat (and, I presume, a number of other Unix
systems) handles log rotation leaves a lot to be desired.

>  wu-ftpd not for RedHat, but for Slackware linux.

I'll take a look at all your patches, probably clean them up a bit, and
submit them to the WU-FTPD Development Group.

-- 

Gregory A Lundberg              Senior Partner, VRnet Company
1441 Elmdale Drive              [email-masked]
Kettering, OH 45409-1615 USA    1-800-809-2195