Go Back   FlashFXP Forums > ioFTPD Forum > ioFTPD > ioFTPD beta > Bug Reports

Bug Reports If you discover any bugs that we are not aware of, please post it here so it may be corrected.

Reply
 
Thread Tools Rate Thread
Old 01-28-2004, 12:06 PM   #1
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 521
Default issue with RETR /.../file

VFS setup:
c:\ftproot\ /
g:\games\ /incoming/games/

Section setup:
games = /incoming/games/* 1 1
default = /* 0 0

User's PWD: /
(so he's in section 0)

Downloading a file with :
RETR /incoming/games/release/filename.rar
(which is in section 1)

ioFTPD works correct, it removes credits from section 1 creditcounter.


Now here's the "problem":
Environment variables are set to section 0, so if a script uses those env. vars. to check something, it will think that the user downloaded a file in section 0.
(no idea if it applies to itcl as well)

Also:
shmem ONLINEDATA struct contains / for PWD and c:\ftproot\ for realpath, while in effect, the file is in g:\games\release\
This makes it impossible to check the filesize of the local file.


Is there any way to get the correct section/path without blocking "RETR */*" commands?
ADDiCT is offline   Reply With Quote
Old 01-28-2004, 02:55 PM   #2
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default

Hmms yep.. I can see that as a issue. Those section variables show current section user is in. Not the section file is in... I'm sooing doing some rewriting on cookiesystem, I'll try to add some new cookies then.
darkone is offline   Reply With Quote
Old 01-28-2004, 03:09 PM   #3
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default

Btw. shmem stores those variables to tszRealDataPath & tszVirtualDataPath
darkone is offline   Reply With Quote
Reply
Create a free account to browse our forums without ads



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 01:58 PM.