/usr/lib/smail/logsumm bug
Not sure how to report this (I am not on this list).
There is a problem with this script when it does not set STATS_LOGS
(no old rotated files present) but carries on anyway. I have
log rotation turned off on my system.
I think that it needs to exit is there is no work to do:
if [ -f ${LOGFILE}.0 ]; then
STATS_LOGS=${LOGFILE}.0
elif [ -f ${LOGFILE}.0${DOT_Z} ]; then
STATS_LOGS=${LOGFILE}.0${DOT_Z}
elif [ -f ${OLD_LOGFILE}.0 ]; then
STATS_LOGS=${OLD_LOGFILE}.0
elif [ -f ${OLD_LOGFILE}.0${DOT_Z} ]; then
STATS_LOGS=${OLD_LOGFILE}.0${DOT_Z}
else # <<<<<
exit 0 # <<<<<
fi
Or we could process the active ${LOGFILE} in that case.
--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>
attach .zip as .dat
Reply to: