Fwd: Small bug in scripts/logwatch.pl
"Kirk Bauer" <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
---------- Forwarded message ---------- From: Jonas Thomsen <[email protected]> Date: Jan 4, 2008 1:50 AM Subject: Small bug in scripts/logwatch.pl To: [email protected] Hi, I have discovered a small bug in the file scripts/logwatch.pl. In CVS revision 1.206, line 764 is currently: $FileText .= ($ThisFile . " "); This will, however, generate a fail at a later point of time if the file name contains a space, since the command above is part of a list generation of log files to be catted later on. If a file name contains a space it will become two files in the list and cat obviously can't find any of them. A very simple fix that solved the problem for me was to change the line to this: $FileText .= ("'" . $ThisFile . "' "); I do not know if this will be a problem on other platforms than the one I am using, Centos Linux 4. I hope you can use my feed back. Regards, Jonas Thomsen -- ------------------------------------------------- Jonas Thomsen, CEO, PhD JT-COM | phone: +45 87 30 16 10 Hvedevej 13 | mobile: +45 20 77 35 44 DK-8464 Galten | e-mail: [email protected] Denmark | WWW: http://www.jt-com.dk ------------------------------------------------- -- Kirk Bauer <[email protected]> http://linux.kaybee.org | www.logwatch.org Author, Automating UNIX & Linux Administration _______________________________________________ Logwatch-Devel mailing list [email protected] http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel
smime.p7s
(application/x-pkcs7-signature, 3.3 KB) - not displayed