Blame SOURCES/0018-Change-the-default-log-file-in-configuration.patch

bd689f
From 61dac172bdb14c5a37713078828ea8c8f78c7eb6 Mon Sep 17 00:00:00 2001
bd689f
From: Martin Sehnoutka <msehnout@redhat.com>
bd689f
Date: Thu, 29 Sep 2016 13:53:16 +0200
bd689f
Subject: [PATCH 18/59] Change the default log file in configuration.
bd689f
bd689f
Previous "default" value was wrong.
bd689f
tunables.c:262 => install_str_setting("/var/log/xferlog",
bd689f
&tunable_xferlog_file);
bd689f
---
bd689f
 RedHat/vsftpd.log | 6 ++++++
bd689f
 vsftpd.conf       | 2 +-
bd689f
 2 files changed, 7 insertions(+), 1 deletion(-)
bd689f
bd689f
diff --git a/RedHat/vsftpd.log b/RedHat/vsftpd.log
bd689f
index d338de8..14731c1 100644
bd689f
--- a/RedHat/vsftpd.log
bd689f
+++ b/RedHat/vsftpd.log
bd689f
@@ -3,3 +3,9 @@
bd689f
     nocompress
bd689f
     missingok
bd689f
 }
bd689f
+
bd689f
+/var/log/xferlog {
bd689f
+    # ftpd doesn't handle SIGHUP properly
bd689f
+    nocompress
bd689f
+    missingok
bd689f
+}
bd689f
diff --git a/vsftpd.conf b/vsftpd.conf
bd689f
index ae6c6c9..39d1955 100644
bd689f
--- a/vsftpd.conf
bd689f
+++ b/vsftpd.conf
bd689f
@@ -50,7 +50,7 @@ connect_from_port_20=YES
bd689f
 #
bd689f
 # You may override where the log file goes if you like. The default is shown
bd689f
 # below.
bd689f
-#xferlog_file=/var/log/vsftpd.log
bd689f
+#xferlog_file=/var/log/xferlog
bd689f
 #
bd689f
 # If you want, you can have your log file in standard ftpd xferlog format.
bd689f
 # Note that the default log file location is /var/log/xferlog in this case.
bd689f
-- 
bd689f
2.14.4
bd689f