diff options
author | obrien <obrien@FreeBSD.org> | 1998-02-20 16:55:57 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1998-02-20 16:55:57 +0800 |
commit | 9f3010c578da476e9fdb4fb88382475f075617d4 (patch) | |
tree | 72ea1a139565a0ee4b4d6f37cb561c9c2385bae3 /ftp | |
parent | febe01aa1fb9700b2b9231532c1e3abae5c3b050 (diff) | |
download | freebsd-ports-graphics-9f3010c578da476e9fdb4fb88382475f075617d4.tar.gz freebsd-ports-graphics-9f3010c578da476e9fdb4fb88382475f075617d4.tar.zst freebsd-ports-graphics-9f3010c578da476e9fdb4fb88382475f075617d4.zip |
Make this thing syslog(3) like the stock ftpd(8).
We now use facility FTP vs. DAEMON, and many LOG_NOTICEs were down graded
to LOG_INFO. Out of the box, this thing will fill your `messages' file
so full, you'd never see anything else in it again, on a busy ftp server.
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/proftpd-devel/files/patch-ae | 33 | ||||
-rw-r--r-- | ftp/proftpd-devel/files/patch-af | 15 | ||||
-rw-r--r-- | ftp/proftpd/files/patch-ae | 33 | ||||
-rw-r--r-- | ftp/proftpd/files/patch-af | 15 |
4 files changed, 96 insertions, 0 deletions
diff --git a/ftp/proftpd-devel/files/patch-ae b/ftp/proftpd-devel/files/patch-ae new file mode 100644 index 00000000000..4d82a6ea76e --- /dev/null +++ b/ftp/proftpd-devel/files/patch-ae @@ -0,0 +1,33 @@ +--- modules/mod_auth.c.orig Tue Nov 11 09:17:23 1997 ++++ modules/mod_auth.c Fri Feb 20 00:38:05 1998 +@@ -177,7 +177,7 @@ + /* Is this the proper behavior when timing out? */ + send_response_async(R_421,"Login Timeout (%d seconds): closing control connection.", + TimeoutLogin); +- schedule(main_exit,0,(void*)LOG_NOTICE,"FTP login timed out, disconnected.", ++ schedule(main_exit,0,(void*)LOG_INFO,"FTP login timed out, disconnected.", + (void*)0,NULL); + remove_timer(TIMER_IDLE,ANY_MODULE); + remove_timer(TIMER_NOXFER,ANY_MODULE); +@@ -731,10 +731,10 @@ + } + + if(c) +- log_auth(LOG_NOTICE,"ANONYMOUS FTP login as '%s' from %s [%s]", ++ log_auth(LOG_INFO,"ANONYMOUS FTP login as '%s' from %s [%s]", + origuser,session.c->remote_name,inet_ntoa(*session.c->remote_ipaddr)); + else +- log_auth(LOG_NOTICE,"FTP login as '%s' from %s [%s]", ++ log_auth(LOG_INFO,"FTP login as '%s' from %s [%s]", + origuser,session.c->remote_name,inet_ntoa(*session.c->remote_ipaddr)); + + session.user = pstrdup(permanent_pool,auth_map_uid(pw->pw_uid)); +@@ -955,7 +955,7 @@ + send_response(R_530,"%s", + sreplace(cmd->tmp_pool,maxstr,"%m",maxn,NULL)); + +- log_auth(LOG_NOTICE,"connection refused (max clients %d)", ++ log_auth(LOG_INFO,"connection refused (max clients %d)", + max); + end_login(0); + } diff --git a/ftp/proftpd-devel/files/patch-af b/ftp/proftpd-devel/files/patch-af new file mode 100644 index 00000000000..0a5d59c566e --- /dev/null +++ b/ftp/proftpd-devel/files/patch-af @@ -0,0 +1,15 @@ +--- src/proftpd.8.orig Wed Oct 29 10:51:30 1997 ++++ src/proftpd.8 Fri Feb 20 00:48:52 1998 +@@ -19,6 +19,12 @@ + may be invoked by the Internet "super-server" inetd(8) each time a + connection to the FTP service is made, or alternatively it can be run as a + stand-alone daemon. ++.br ++.PP ++Each successful and failed ftp(1) session is logged using syslog with a ++facility of LOG_FTP. Note: LOG_FTP messages are not displayed ++by syslogd(8) by default, and may have to be enabled in syslogd(8)'s ++configuration file. + .SH OPTIONS + .TP 12 + .B \-h,\--help diff --git a/ftp/proftpd/files/patch-ae b/ftp/proftpd/files/patch-ae new file mode 100644 index 00000000000..4d82a6ea76e --- /dev/null +++ b/ftp/proftpd/files/patch-ae @@ -0,0 +1,33 @@ +--- modules/mod_auth.c.orig Tue Nov 11 09:17:23 1997 ++++ modules/mod_auth.c Fri Feb 20 00:38:05 1998 +@@ -177,7 +177,7 @@ + /* Is this the proper behavior when timing out? */ + send_response_async(R_421,"Login Timeout (%d seconds): closing control connection.", + TimeoutLogin); +- schedule(main_exit,0,(void*)LOG_NOTICE,"FTP login timed out, disconnected.", ++ schedule(main_exit,0,(void*)LOG_INFO,"FTP login timed out, disconnected.", + (void*)0,NULL); + remove_timer(TIMER_IDLE,ANY_MODULE); + remove_timer(TIMER_NOXFER,ANY_MODULE); +@@ -731,10 +731,10 @@ + } + + if(c) +- log_auth(LOG_NOTICE,"ANONYMOUS FTP login as '%s' from %s [%s]", ++ log_auth(LOG_INFO,"ANONYMOUS FTP login as '%s' from %s [%s]", + origuser,session.c->remote_name,inet_ntoa(*session.c->remote_ipaddr)); + else +- log_auth(LOG_NOTICE,"FTP login as '%s' from %s [%s]", ++ log_auth(LOG_INFO,"FTP login as '%s' from %s [%s]", + origuser,session.c->remote_name,inet_ntoa(*session.c->remote_ipaddr)); + + session.user = pstrdup(permanent_pool,auth_map_uid(pw->pw_uid)); +@@ -955,7 +955,7 @@ + send_response(R_530,"%s", + sreplace(cmd->tmp_pool,maxstr,"%m",maxn,NULL)); + +- log_auth(LOG_NOTICE,"connection refused (max clients %d)", ++ log_auth(LOG_INFO,"connection refused (max clients %d)", + max); + end_login(0); + } diff --git a/ftp/proftpd/files/patch-af b/ftp/proftpd/files/patch-af new file mode 100644 index 00000000000..0a5d59c566e --- /dev/null +++ b/ftp/proftpd/files/patch-af @@ -0,0 +1,15 @@ +--- src/proftpd.8.orig Wed Oct 29 10:51:30 1997 ++++ src/proftpd.8 Fri Feb 20 00:48:52 1998 +@@ -19,6 +19,12 @@ + may be invoked by the Internet "super-server" inetd(8) each time a + connection to the FTP service is made, or alternatively it can be run as a + stand-alone daemon. ++.br ++.PP ++Each successful and failed ftp(1) session is logged using syslog with a ++facility of LOG_FTP. Note: LOG_FTP messages are not displayed ++by syslogd(8) by default, and may have to be enabled in syslogd(8)'s ++configuration file. + .SH OPTIONS + .TP 12 + .B \-h,\--help |