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