Me again,

just discovered that I also patched mod_exec. I know that it's not
recommended and not part of the default distribution but I would
like to share it anyway:

1539c1539,1541
< 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) {


This is found in exec_subst_var() inside if (strstr("%f", varstr))...

Same reason as the previous patch. I use it to move uploaded files once
they are uploaded. But the script does not get the path if the client
first
uploads into a directory where files are affected (the script decides
which
folders it wants files to be moved from) and then only moves them to the
folder where files will get moved. After the patch the RNTO command will
contain the destination path as a parameter.

Any comments welcome,
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?p...rge&CID=DEVDEV
_______________________________________________
ProFTPD Users List
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html