blob: 9ba531f815c0ccf78d3fd3432ea7a5d61cf45b31 [file] [log] [blame]
Andrew Geissler4b740dc2020-05-05 08:54:39 -05001From a3fdf3dbdd6ecc0f2550a765dcb9bb274bce8ea8 Mon Sep 17 00:00:00 2001
Brad Bishop19323692019-04-05 15:28:33 -04002From: 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>
Andrew Geissler4b740dc2020-05-05 08:54:39 -050012
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013---
Brad Bishop19323692019-04-05 15:28:33 -040014 config.c | 9 ---------
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015 1 file changed, 9 deletions(-)
16
17diff --git a/config.c b/config.c
Andrew Geissler4b740dc2020-05-05 08:54:39 -050018index f027c7e..026136c 100644
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019--- a/config.c
20+++ b/config.c
Andrew Geissler4b740dc2020-05-05 08:54:39 -050021@@ -1873,15 +1873,6 @@ duperror:
Brad Bishop19323692019-04-05 15:28:33 -040022 }
Andrew Geissler4b740dc2020-05-05 08:54:39 -050023
24 free(ld);
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025-
Brad Bishop19323692019-04-05 15:28:33 -040026- if (sb.st_dev != sb2.st_dev
27- && !(newlog->flags & (LOG_FLAG_COPYTRUNCATE | LOG_FLAG_COPY | LOG_FLAG_TMPFILENAME))) {
28- message(MESS_ERROR,
29- "%s:%d olddir %s and log file %s "
30- "are on different devices\n", configFile,
31- lineNum, newlog->oldDir, newlog->files[i]);
32- goto error;
33- }
34 }
35 }
Patrick Williamsc124f4f2015-09-15 14:41:29 -050036