Mailinglist Archive: opensuse (3983 mails)

< Previous Next >
Logrotate 3.6.6 olddir problem solved
  • From: Fred Mobach <fred@xxxxxxxxx>
  • Date: Tue, 02 Dec 2003 17:44:38 +0100
  • Message-id: <3FCCC176.EFB25A9B@xxxxxxxxx>
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@xxxxxxxxx - postmaster@xxxxxxxxx
Systemhouse Mobach bv - The Netherlands - since 1976
website : http://fred.mobach.nl
Q: servos ad pileum vocare ?
A: servos venestrae ad pileum rubrem vocare !

< Previous Next >
Follow Ups