Hello, I've improved my filename globbing patch. The new patch is attached and replaces the previous patch. -- Casper Gielen
--- logcheck 2010-09-03 10:25:15.000000000 +0200 +++ /usr/sbin/logcheck 2011-03-02 17:28:37.166884294 +0100 @@ -436,6 +436,12 @@ fi } +# Expand wildcards +# eg: /dev/n*ll -> /dev/null +glob() { + xargs -I{} bash -c "ls -1 {}" +} + # Show all the cli options to our users. usage() { debug "usage: Printing usage and exiting" @@ -658,7 +664,7 @@ mkdir "$TMPDIR/logoutput" \ || error "Could not mkdir for log files" if [ ! "$LOGFILE" ] && [ -r "$LOGFILES_LIST" ]; then - egrep --text -v "(^#|^[[:space:]]*$)" "$LOGFILES_LIST" | while read file; do + egrep --text -v "(^#|^[[:space:]]*$)" "$LOGFILES_LIST" | glob | while read file; do logoutput "$file" done elif [ "$LOGFILE" ]; then
signature.asc
Description: Digital signature