Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209612 - net-ftp/vsftpd patch: correct format of syslog messages
Summary: net-ftp/vsftpd patch: correct format of syslog messages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on: 266664
Blocks:
  Show dependency tree
 
Reported: 2008-02-10 23:35 UTC by René Berber
Modified: 2009-05-30 11:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to produce correct syslog format messages. (vsftpd-2.0.5-syslog.patch,951 bytes, patch)
2008-02-10 23:37 UTC, René Berber
Details | Diff
Ebuild file that includes application of submitted patch (vsftpd-2.0.5-r90.ebuild,3.06 KB, text/plain)
2008-02-10 23:38 UTC, René Berber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René Berber 2008-02-10 23:35:36 UTC
On vsftpd version 2.0.5 the logged messages have a fixed format that does not comply with syslog standards.

When you set in the configuration the option to use syslog (instead of the default which is to use it's own log file), you get messages that have 2 timestamps (slightly different since vsftpd includes day of the week name and year).

The problem has been reported to the author.

Reproducible: Always

Steps to Reproduce:
1. Install vsftpd
2. Configure it with option "syslog_enable=YES"
3. Start the server and do some ftp operations (login, get, delete, ...)
4. Look at /var/log/messages

Actual Results:  
Jan 26 19:25:58 LegoSoft2 vsftpd: Sat Jan 26 19:25:58 2008 [pid 24241] CONNECT: Client "192.168.20.245"

Expected Results:  
Jan 26 19:25:58 LegoSoft2 vsftpd[24241]: CONNECT: Client "192.168.20.245"

Included :

1. Patch to correct this;
2. ebuild file to apply the patch.
Comment 1 René Berber 2008-02-10 23:37:55 UTC
Created attachment 143169 [details, diff]
Patch to produce correct syslog format messages.
Comment 2 René Berber 2008-02-10 23:38:49 UTC
Created attachment 143171 [details]
Ebuild file that includes application of submitted patch
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2008-02-26 18:42:34 UTC
Why not send this upstream?
Comment 4 René Berber 2008-02-26 19:10:25 UTC
I did, on Feb 7 I sent an email to the author.  No reply so far.

The reason I opened this report is that if you read vsftpd's main web page, the author says there will be only changes if a security problem is found, so I do not expect him to fix syslog reporting.
Comment 5 René Berber 2008-12-16 21:14:59 UTC
Just received notice from the author:

"Added for v2.1.0, thanks for the report!"

So next version will not need my patch.
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2009-05-30 11:21:12 UTC
Closing since 2.1.0 is stable