SuSE Linux 8.2 and 9.0 contains logrotate version 3.6.6. This version does not process the olddir directive correctly : olddir /var/log/old returns an error message as does olddir old This patch solves the problem : ---cut here--- --- config.c 2002-12-10 18:41:16.000000000 +0100 +++ config.c 2003-12-01 22:03:43.000000000 +0100 @@ -913,7 +913,7 @@ return 1; } - if(newlog->oldDir[0] == '/') dirName = ld; + if(newlog->oldDir[0] != '/') dirName = ld; else dirName = newlog->oldDir; if(stat(dirName, &sb)) { message(MESS_ERROR, "%s:%d error verifying olddir " ---cut here--- -- Fred Mobach - fred@mobach.nl - postmaster@mobach.nl Systemhouse Mobach bv - The Netherlands - since 1976 website : http://fred.mobach.nl Q: servos ad pileum vocare ? A: servos venestrae ad pileum rubrem vocare !
Fred Mobach <fred@mobach.nl> [Tue, 02 Dec 2003 17:44:38 +0100]:
SuSE Linux 8.2 and 9.0 contains logrotate version 3.6.6. This version does not process the olddir directive correctly : olddir /var/log/old returns an error message as does olddir old
This patch solves the problem :
Care to send that to SUSE via http://www.suse.de/feedback ? In case the respective package maintainer at SUSE doesn't know of that fix. Philipp
Philipp Thomas wrote:
Fred Mobach <fred@mobach.nl> [Tue, 02 Dec 2003 17:44:38 +0100]:
SuSE Linux 8.2 and 9.0 contains logrotate version 3.6.6. This version does not process the olddir directive correctly : olddir /var/log/old returns an error message as does olddir old
This patch solves the problem :
Care to send that to SUSE via http://www.suse.de/feedback ? In case the respective package maintainer at SUSE doesn't know of that fix.
Thank you for the tip, it has been done. I have already made available rpm's at http://data.mobach.nl/ : ./distributions/suse/i386/update/8.2/rpm/src/logrotate-3.6.6-22.src.rpm.md5sum ./distributions/suse/i386/update/8.2/rpm/src/logrotate-3.6.6-22.src.rpm ./distributions/suse/i386/update/8.2/rpm/i586/logrotate-3.6.6-22.i386.rpm ./distributions/suse/i386/update/8.2/rpm/i586/logrotate-3.6.6-22.i386.rpm.md5sum -- Fred Mobach - fred@mobach.nl - postmaster@mobach.nl Systemhouse Mobach bv - The Netherlands - since 1976 website : http://fred.mobach.nl Q: servos ad pileum vocare ? A: servos venestrae ad pileum rubrem vocare !
participants (2)
-
Fred Mobach
-
Philipp Thomas