[prev in list] [next in list] [prev in thread] [next in thread]
List: proftpd-users
Subject: [Proftpd-user] Patch suggestion for mod_sql
From: Andreas Pardeike <ap () fsys ! se>
Date: 2007-01-17 13:10:08
Message-ID: 99D89A1E-EAEE-4ACC-81F1-6F4AECF63B7A () fsys ! se
[Download RAW message or body]
Hi,
I am responsible for a big swedish book database and thanks proftpd we
are able to handle ftp in a safe and solid way.
I use sql for authentication and logging and especially with logging I
always found proftpd's usage of paths irritating. I have an old patch
that I usually apply to mod_sql.c and I would like to share & discuss
it here:
< if (session.xfer.p && session.xfer.path) {
---
> if (!strcmp(cmd->argv[0], C_RNTO)) {
> sstrncpy(arg, dir_abs_path(cmd->tmp_pool, cmd->arg, TRUE),
sizeof(arg));
> } else if (session.xfer.p && session.xfer.path) {
It's in the case 'F' statement inside resolve_short_tag() and will
increase
the information that is logged in case of an RNTO command.
Would be great to incorporate this change if you think it makes sense.
Andreas Pardeike
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ProFTPD Users List <proftpd-users@proftpd.org>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic