summaryrefslogtreecommitdiff
path: root/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-04-19 14:19:26 -0500
committerJohn Klug <john.klug@multitech.com>2017-05-23 15:21:54 -0500
commit0641240a3fe5f3dd0856c9a24aa1b13e98c56e59 (patch)
tree849a1af494e31bd6599c5beebd32ead37e7ad21c /recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch
parent4979ec261513b5dae7da34fe9a1b8f35de4a72c7 (diff)
downloadmeta-mlinux-0641240a3fe5f3dd0856c9a24aa1b13e98c56e59.tar.gz
meta-mlinux-0641240a3fe5f3dd0856c9a24aa1b13e98c56e59.tar.bz2
meta-mlinux-0641240a3fe5f3dd0856c9a24aa1b13e98c56e59.zip
logrotate and openjdk-8
Diffstat (limited to 'recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch')
-rw-r--r--recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch b/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch
new file mode 100644
index 0000000..793d702
--- /dev/null
+++ b/recipes-extended/logrotate/logrotate/disable-check-different-filesystems.patch
@@ -0,0 +1,32 @@
+Disable the check for different filesystems
+
+The logrotate supports rotate log across different filesystems now, so
+disable the check for different filesystems.
+
+Upstream-Status: Pending
+
+Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
+---
+ config.c | 9 ---------
+ 1 file changed, 9 deletions(-)
+
+diff --git a/config.c b/config.c
+index dbbf563..64e66f6 100644
+--- a/config.c
++++ b/config.c
+@@ -1493,15 +1493,6 @@ static int readConfigFile(const char *configFile, struct logInfo *defConfig)
+ goto error;
+ }
+ }
+-
+- if (sb.st_dev != sb2.st_dev
+- && !(newlog->flags & (LOG_FLAG_COPYTRUNCATE | LOG_FLAG_COPY | LOG_FLAG_TMPFILENAME))) {
+- message(MESS_ERROR,
+- "%s:%d olddir %s and log file %s "
+- "are on different devices\n", configFile,
+- lineNum, newlog->oldDir, newlog->files[i]);
+- goto error;
+- }
+ }
+ }
+