Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rating: Thread Rating: 18 votes, 5.00 average. Display Modes
Old 10-09-2003, 02:25 AM   #1
Miky
Member
 
Join Date: Feb 2003
Posts: 31
Question move from private

When I move (in C++) any dir from private folder where are set any hidden permissions to "public" folder, none except master can't see and enter this dir.
When I look at permission rights (site chattr +h <dir>) it returns only "200 CHATTR: ", but couldn't be "200 CHATTR: <value not set>"? And I can't change it
What is the right way to move dir from private folder to public folder?
THX Miky
Miky is offline  
Old 10-09-2003, 03:10 AM   #2
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Directories inside private directory should not have the 'context' in .ioFTPD file that sets them to be private. Check that some script isn't altering them.
darkone is offline  
Old 10-09-2003, 03:28 AM   #3
Miky
Member
 
Join Date: Feb 2003
Posts: 31
Default

I use only my own scripts
none does anything with private dir
this sctrip is like "pre" and it does ...
1) change owner and group and mode of files in this dir and subdirs (except .ioFTPD)
2) change time of files in this dir and subdirs to now (except .ioFTPD)
3) move dir to new location

and there isn't visible for anyone except master :'(

edit:
It looks like when I change mode to dir then it disapear
but I get this mode with DC_VFS_READ
Miky is offline  
Old 10-09-2003, 04:24 AM   #4
Miky
Member
 
Join Date: Feb 2003
Posts: 31
Default

so...
I debug my program and figure out interesting thing

1) move dir to new location
2) get FileAttributes.Mode form files (436)
3) set FileAttributes.Mode, FileAttributes.Uid, FileAttributes.Gid (everything OK, files has changed owner, group and same permission rights)
4) get FileAttributes.Mode form dir (509)
5) set FileAttributes.Mode, FileAttributes.Uid, FileAttributes.Gid (everything OK, dir has changed owner, group and same permission rights, but as I said he disappear)

And what is the worst is that I don't know any way how to change it back

THX for ANY advice
Miky is offline  
Old 10-09-2003, 05:00 AM   #5
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Ok, my assumption is that you're accidently setting something to directory context. Make sure that dwContextSize is set to 0. Also, always check return value, if DC_VFS_READ return -2 - it means that context could not be read (not enough memory allocated for context). In such case, dwContextSize contains wrong value.

... I'll try to redesign DC_VFS_READ & DC_VFS_WRITE structures to something more userfriendly (just noticed how horrible they are)
darkone is offline  
Old 10-09-2003, 05:09 AM   #6
Miky
Member
 
Join Date: Feb 2003
Posts: 31
Default

BIG BIG BIG THX
D1

I haven't dwContextSize set to 0
Thanks again
Miky is offline  
Closed Thread

Tags
chattr, dir, folder, move, private

Thread Tools
Display Modes 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload not resuming Vista General Discussion 1 01-18-2005 08:59 PM
Bug with Add Group?? malexx Bug Reports 2 02-28-2003 10:49 AM


All times are GMT -5. The time now is 03:51 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)