]> git.pld-linux.org Git - packages/proftpd.git/blob - proftpd-betterlog.patch
added globbing fix; release 1; stb
[packages/proftpd.git] / proftpd-betterlog.patch
1 diff -ur proftpd-1.2.0pre9.orig/modules/mod_auth.c proftpd-1.2.0pre9/modules/mod_auth.c
2 --- proftpd-1.2.0pre9.orig/modules/mod_auth.c   Sat Oct 23 07:18:49 1999
3 +++ proftpd-1.2.0pre9/modules/mod_auth.c        Thu Oct 28 15:18:57 1999
4 @@ -541,8 +541,11 @@
5    c = _auth_resolve_user(p,&user,&ourname,&anonname);
6  
7    if(!user) {
8 -    log_pri(LOG_NOTICE, "USER %s (Login failed): User not a UserAlias.",
9 -           origuser);
10 +    log_auth(LOG_NOTICE,"USER %s: user is not a UserAlias from %s [%s] to %s:%i",
11 +               origuser,session.c->remote_name,
12 +               inet_ascii(p,session.c->remote_ipaddr),
13 +               inet_ascii(p,session.c->local_ipaddr),
14 +               session.c->local_port);
15      goto auth_failure;
16    }
17  
18 @@ -550,7 +553,11 @@
19    aclp = login_check_limits(main_server->conf,FALSE,TRUE,&i);
20  
21    if((pw = auth_getpwnam(p,user)) == NULL) {
22 -    log_pri(LOG_NOTICE, "USER %s (Login failed): Can't find user.", user);
23 +    log_auth(LOG_NOTICE,"USER %s: no such user found from %s [%s] to %s:%i",
24 +               user,session.c->remote_name,
25 +               inet_ascii(p,session.c->remote_ipaddr),
26 +               inet_ascii(p,session.c->local_ipaddr),
27 +               session.c->local_port);
28      goto auth_failure;
29    }
30  
This page took 0.072195 seconds and 3 git commands to generate.