View Full Version : 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
darkone
10-09-2003, 03:10 AM
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.
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
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
darkone
10-09-2003, 05:00 AM
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)
BIG BIG BIG THX
D1
I haven't dwContextSize set to 0
Thanks again
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.