Re: Trying to make pure-ftpd log to fifo
Steve Marple <[email protected]> Fri, 20 Jan 2006 21:27:50 +0000
| Newsgroups | gmane.network.pureftpd.user |
|---|---|
| Message-ID | <[email protected]> |
Thomas Goirand wrote: > I've been trying to write a pure-ftpd log to sql little C utility, so I > did a fifo using mkfifo /var/log/pure-ftpd.log. Then I start pure ftpd > with the option -O clf:/var/log/pure-ftpd.fifo. The problem is that when > I do cat /var/log/pure-ftpd.log, nothing comes out, and it seems that > pure-ftpd don't like to log in a fifo and sends nothing. That's correct. I found that too when I wrote a log-to-postgresql utility in perl. Basically pure-ftpd attempts to seek on the fifo, which fails and the logging is aborted. I've written a patch to fix this. You can find the patch on sourceforge: http://sourceforge.net/tracker/index.php?func=detail&aid=1293681&group_id=18317&atid=318317 I'm hoping that my patch will be included in pureftpd. (Developers: can it be included please?) Steve Marple --------------------------------------------------------------------- To post a new message, e-mail: [email protected] To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]