PDA

View Full Version : [Fixed] double [Pre] scripts - only last one is executed...


Mouton
11-22-2003, 05:44 PM
How to reproduce:

- get 5.3.0 full package

- replace .exe by 5.3.8

- change admin.vfs to something valid

- edit ioFTPD.ini [Pre]:
mkd = TCL ..\scripts\test.itcl 123
mkd = TCL ..\scripts\test.itcl 456
retr = EXEC ..\scripts\test.bat 123

- put test.itcl in ..\scripts:

iputs "test $args"
return 0- start ioftpd.exe

- login

[17:34:05] [L] MKD test
[17:34:05] [L] test 456 MKD test
[17:34:05] [L] 257 "test" created.

- change ioftpd.ini [Pre]:
mkd = TCL ..\scripts\test.itcl 123
mkd = TCL ..\scripts\test.itcl 456
;retr = EXEC ..\scripts\test.bat 123

- site config rehash

[17:36:50] [L] MKD test
[17:36:50] [L] test 123 MKD test
[17:36:50] [L] test 456 MKD test
[17:36:50] [L] 257 "test" created.

- edit ioftpd.ini [Pre]:
[Pre]
mkd = TCL ..\scripts\test.itcl 123
mkd = TCL ..\scripts\test.itcl 456
mkd = TCL ..\scripts\test.itcl 789

- site config rehash

[17:46:23] [L] MKD test
[17:46:23] [L] test 456 MKD test
[17:46:23] [L] test 789 MKD test
[17:46:23] [L] 257 "test" created.

- edit ioftpd.ini [Pre]:
[Pre]
mkd = TCL ..\scripts\test.itcl 123
mkd = TCL ..\scripts\test.itcl 456
mkd = TCL ..\scripts\test.itcl 789
mkd = TCL ..\scripts\test.itcl 101112
mkd = TCL ..\scripts\test.itcl 123

- site config rehash

[17:48:19] [L] MKD test
[17:48:19] [L] test 789 MKD test
[17:48:19] [L] test 101112 MKD test
[17:48:19] [L] test 123 MKD test
[17:48:19] [L] 257 "test" created.

and so on and so on...same behavior if test.bat (echo test %1) is used instead of test.itcl

alturismo
11-23-2003, 05:08 AM
seems to be also on [scripts] events

as often heard already wipe ioA & newdir doesnt work together

also other events like ioBanana kicknuke & ioA nuke

samples

wipe = EXEC ..\ioA\ioA.exe wipe
wipe = TCL ..\scripts\newdir\OnSiteWipe.itcl

only newdir is executed

wipe = TCL ..\scripts\newdir\OnSiteWipe.itcl
wipe = EXEC ..\ioA\ioA.exe wipe

only ioA is executed


nuke = EXEC ..\ioB\ioBanana.exe kicknuke NUKE
nuke = EXEC ..\ioA\ioA.exe nuke

only ioA nuke is executed

nuke = EXEC ..\ioA\ioA.exe nuke
nuke = EXEC ..\ioB\ioBanana.exe kicknuke NUKE

only ioBanana kick is executed


just some samples ;)

darkone
11-24-2003, 01:40 AM
Seems like I had changed comparison to case sensitive while adding unicode support to confing reader :)

Mouton
11-24-2003, 11:37 AM
so that means fixed in .9 ?