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