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

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