csfpost bug in version 4.12

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
sparek
Junior Member
Posts: 38
Joined: 11 Feb 2008, 17:55

csfpost bug in version 4.12

Post by sparek »

Looks like on line 327 in csf.pl in version 4.12 the line is:

Code: Select all

if (-e "/etc/csf/csfpost.sh\n") {
and it should be:

Code: Select all

if (-e "/etc/csf/csfpost.sh") {
The extra "\n" is causing the csfpost.sh script to not be found and not executed.

I compared this with version 4.11 and it looks like 4.11 has this correct.
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Post by Sergio »

Where is the CSFPOST.SH file?
sparek
Junior Member
Posts: 38
Joined: 11 Feb 2008, 17:55

Post by sparek »

Its an optional file.

You can create it at /etc/csf/csfpost.sh and it is run after CSF is started or restarted.

It is not a required file for csf to work.
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

Thanks for the report. I'll release a fix for the bug shortly.
Post Reply