blob: 96ff098a3f2301f3595fff2539f2505ea304255a [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From e47796c8e8270a3d14f0b06af8a9e916c2225514 Mon Sep 17 00:00:00 2001
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Tue, 8 Jan 2019 06:27:06 +0000
4Subject: [PATCH] Disable the check for different filesystems
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005
6The logrotate supports rotate log across different filesystems now, so
7disable the check for different filesystems.
8
9Upstream-Status: Pending
10
11Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
12---
Brad Bishop19323692019-04-05 15:28:33 -040013 config.c | 9 ---------
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014 1 file changed, 9 deletions(-)
15
16diff --git a/config.c b/config.c
Brad Bishop19323692019-04-05 15:28:33 -040017index 633b843..99a4a3b 100644
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018--- a/config.c
19+++ b/config.c
Brad Bishop19323692019-04-05 15:28:33 -040020@@ -1765,15 +1765,6 @@ duperror:
21 goto error;
22 }
23 }
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024-
Brad Bishop19323692019-04-05 15:28:33 -040025- if (sb.st_dev != sb2.st_dev
26- && !(newlog->flags & (LOG_FLAG_COPYTRUNCATE | LOG_FLAG_COPY | LOG_FLAG_TMPFILENAME))) {
27- message(MESS_ERROR,
28- "%s:%d olddir %s and log file %s "
29- "are on different devices\n", configFile,
30- lineNum, newlog->oldDir, newlog->files[i]);
31- goto error;
32- }
33 }
34 }
Patrick Williamsc124f4f2015-09-15 14:41:29 -050035
Brad Bishop19323692019-04-05 15:28:33 -040036--
372.18.1
38