summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2005-01-19 10:49:40 +0000
committeryar <yar@FreeBSD.org>2005-01-19 10:49:40 +0000
commit2f9f83ffc750de5353df178df851d0a35df1f8a3 (patch)
tree3a383e5b299744e8926594c0f5de59564953073e
parente3e66eec0c7051bf431d437a86de9c341bef0600 (diff)
downloadFreeBSD-src-2f9f83ffc750de5353df178df851d0a35df1f8a3.zip
FreeBSD-src-2f9f83ffc750de5353df178df851d0a35df1f8a3.tar.gz
Respect the `logging' flag.
Pointed out by: Nick Leuta MFC after: 3 days
-rw-r--r--libexec/ftpd/ftpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 51332db..6842714 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1615,7 +1615,7 @@ skip:
syslog(LOG_INFO, "FTP LOGIN FROM %s as %s",
remotehost, pw->pw_name);
}
- if (guest || dochroot)
+ if (logging && (guest || dochroot))
syslog(LOG_INFO, "session root changed to %s", chrootdir);
#ifdef LOGIN_CAP
login_close(lc);
OpenPOWER on IntegriCloud