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

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