Blame SOURCES/logrotate-3.8.6-olddircopy.patch

285127
diff --git a/config.c b/config.c
285127
index e9992e3..926d388 100644
285127
--- a/config.c
285127
+++ b/config.c
285127
@@ -1488,7 +1488,8 @@ static int readConfigFile(const char *configFile, struct logInfo *defConfig)
285127
 						}
285127
 					}
285127
 
285127
-					if (sb.st_dev != sb2.st_dev) {
285127
+					if (sb.st_dev != sb2.st_dev
285127
+						&& !(newlog->flags & (LOG_FLAG_COPYTRUNCATE | LOG_FLAG_COPY))) {
285127
 						message(MESS_ERROR,
285127
 							"%s:%d olddir %s and log file %s "
285127
 							"are on different devices\n", configFile,