Your shopping cart is empty
Share |

Go Back   FlashFXP Support Forums > ioFTPD > ioFTPD > ioFTPD beta > ioFTPD General

Notices

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread
Old 08-28-2010, 10:53 AM   #136
o_dog
Senior Member
 
Join Date: May 2007
Posts: 414
Default

hmm sorry, it return the right uid and gid, but then it returns some wierd permission in 6 digits, 100755 for instance. [vfs read $path] where path is dir.

is this right?
__________________
ioNiNJA - http://odog.tx-shells.net

Last edited by o_dog; 08-28-2010 at 10:59 AM.
o_dog is offline   Reply With Quote
Old 08-29-2010, 02:57 AM   #137
Yil
Senior Member
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 794
Default

Hmm... [vfs read] actually does return "uid gid mode" with the last 3 digits being the octal mode of the permissions. However, at some point in the past I started using higher order bits to reduce attribute lookups if the chattr value was known to not exist. I hemmed and hawed a bit and decided to let [resolve list], [vfs dir], and [vfs read] return the extra bits so that scripts could benefit as well. If the bit is set the value exists and you know it's a symlink, hidden dir, etc and if not set then you know it isn't. Saves having to do a [vfs chattr 1] to test for symlinks all the time. I updated the [resolve list] documentation but failed to do so for the [vfs] commands so that's why it's not making sense to you... Just OR the bits with 0777 to get just the permissions like before. The higher order bits are:

#define S_REDIRECTED 040000 // not currently used...
#define S_SYMBOLIC 020000 // ioFTPD symbolic link (chattr 1)
#define S_PRIVATE 010000 // Private/hidden dir (chattr 0)
Yil is offline   Reply With Quote
Old 08-29-2010, 03:43 AM   #138
o_dog
Senior Member
 
Join Date: May 2007
Posts: 414
Default

that seriously break compability with ALL scripts that uses that command doesn't it? for VERY little benefit.
__________________
ioNiNJA - http://odog.tx-shells.net
o_dog is offline   Reply With Quote
Old 08-29-2010, 01:20 PM   #139
Yil
Senior Member
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 794
Default

I misspoke in the previous post with respect to [vfs read]. I changed [vfs write] to reject attempts to SET the high order bits a while ago, but that was because I was testing the [resolve list] function (which is supposed to expose those extra bits) and it was causing issues in the virtual dir test script I posted a while ago somewhere. That's when I decided to let the extra bits stay, but only for the [resolve list] function and documented that.

I do remember discovering that [vfs dir] also exposed those bits months later and figured nobody was using that new command yet so I just made a note to update the iTCL doc file so it would act the same as [resolve list], but I never did or the change was lost somehow because it's not in the file or in the Changelog.

On the other hand, I either never figured out [vfs read] needed updating (which is odd), or the trivial change to strip the bits got lost along with the note to update the [vfs dir] docs. I'm with you, changing [vfs read] behavior isn't something I'd want happening either but I can't figure out why I didn't update the docs OR revert the behavior since I do remember discovering the issue months after it went live...
Yil is offline   Reply With Quote
Old Today, 01:05 AM   #140
PSA9
Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Apr 2006
Posts: 38
Default

Yil i been away from ioFTPD but about to do some upgrades and looking to try a much updated ioFTPD as it seems much has been done since i been gone!

I am totally new to NAS and in the process of purchasing one so bare with me on the questions i have!
I read that the NAS has FTP Sever but can i put ioFTPD as that FTP Server?

If not does ioFTPD work well with a NAS?

Any Knowledge u can help me with would be nice, i just want the site scripts like ioNiNJA to organize my items! By the way the NAS is for my RV and is important i have one in their!
__________________
FTP Server:ioFTPD-v6.3.5 ... Scripts:ioNiNJA.beta.v0.4.5 ... Client:FlashFXP v3.6 RC3 ... OS:Windows Vista Ultimate x64
PSA9 is offline   Reply With Quote
Old Today, 01:08 AM   #141
o_dog
Senior Member
 
Join Date: May 2007
Posts: 414
Default

If the NAS runs windows home server maybe, otherwise no.
__________________
ioNiNJA - http://odog.tx-shells.net
o_dog is offline   Reply With Quote
Reply

Bookmarks
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

Forum Jump


All times are GMT -5. The time now is 11:53 AM.