(fwd) [Logcheck-devel] Bug#319169: logcheck: chokes on log files whose names contain spaces

maximilian attems debian at sternwelten.at
Wed Jul 20 16:36:21 UTC 2005


i did some cleanup first, but now i'm choking on a much earlier stage
than i first thought.

-- logcheck
    for file in $(egrep --text -v "(^#|^[[:space:]]*$)" $LOGFILES_LIST); do
        logoutput "$file"
    done
--

that falls apart if you insert in /etc/logcheck/logcheck.logfiles
a line like
/var/log/auth .log
even if you escape it with "", which is a valid file name.

hmm i'm not that fond of files with spaces inside,
but i'd like to fix taht bug. atm found no way to process aboves list
in way that each line argument is one arg for logoutput.

happy to hear your thoughts.

--
maks





More information about the Logcheck-devel mailing list