summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch')
-rw-r--r--meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch30
1 files changed, 13 insertions, 17 deletions
diff --git a/meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch b/meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch
index 0535a45e08..43ebcffbae 100644
--- a/meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch
+++ b/meta/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch
@@ -1,12 +1,9 @@
1From 263212af7b7fe1083f777255d91f029401391e4f Mon Sep 17 00:00:00 2001 1Disable the check for different filesystems
2From: Robert Yang <liezhi.yang@windriver.com>
3Date: Tue, 17 Feb 2015 21:18:39 -0800
4Subject: [PATCH] Disable the check for different filesystems
5 2
6The logrotate supports rotate log across different filesystems now, so 3The logrotate supports rotate log across different filesystems now, so
7disable the check for different filesystems. 4disable the check for different filesystems.
8 5
9Upstream-Status: Pending 6Upstream-Status: Submitted
10 7
11Signed-off-by: Robert Yang <liezhi.yang@windriver.com> 8Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
12--- 9---
@@ -14,25 +11,24 @@ Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
14 1 file changed, 9 deletions(-) 11 1 file changed, 9 deletions(-)
15 12
16diff --git a/config.c b/config.c 13diff --git a/config.c b/config.c
17index dbbf563..64e66f6 100644 14index e0eadb7..c23092f 100644
18--- a/config.c 15--- a/config.c
19+++ b/config.c 16+++ b/config.c
20@@ -1493,15 +1493,6 @@ static int readConfigFile(const char *configFile, struct logInfo *defConfig) 17@@ -1515,15 +1515,6 @@ static int readConfigFile(const char *configFile, struct logInfo *defConfig)
21 goto error; 18 dirName, strerror(errno));
22 } 19 goto error;
23 } 20 }
24- 21-
25- if (sb.st_dev != sb2.st_dev 22- if (sb.st_dev != sb2.st_dev
26- && !(newlog->flags & (LOG_FLAG_COPYTRUNCATE | LOG_FLAG_COPY | LOG_FLAG_TMPFILENAME))) { 23- && !(newlog->flags & (LOG_FLAG_COPYTRUNCATE | LOG_FLAG_COPY))) {
27- message(MESS_ERROR, 24- message(MESS_ERROR,
28- "%s:%d olddir %s and log file %s " 25- "%s:%d olddir %s and log file %s "
29- "are on different devices\n", configFile, 26- "are on different devices\n", configFile,
30- lineNum, newlog->oldDir, newlog->files[i]); 27- lineNum, newlog->oldDir, newlog->files[i]);
31- goto error; 28- goto error;
32- } 29- }
33 } 30 }
34 } 31 }
35 32
36-- 33--
371.7.9.5 341.7.9.5
38