zFTPServer in wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Nicklas
Newbie
Newbie
Posts: 1
Joined: Thu Jun 05, 2008 2:47 am

zFTPServer in wine

Post by Nicklas »

Hello,

I'm currently experimenting on running zFTPServer under wine and it's working quite well :D
- I've added a switch "-wine" that will turn graphics off completely and using the latest wine release it's running ok on Ubuntu Server 8.04 without X installed and no "fake" X either...

One thing that would be great to accomplish is the ability to execute chown / chmod from within wine (to have uploaded files get the same permissions as their parent folder)...
- Anybody knows how to do that?

This is what I want to execute in zFTPServer from within wine:

Code: Select all

        // Change owner to that of parent directory
        Libc.system(PChar('chown `find "'+Path+'." -name "." -maxdepth 1 -printf "%U"` "'+Path+File+'"'));
        // Change group to that of parent directory
        Libc.system(PChar('chgrp `find "'+Path+'." -name "." -maxdepth 1 -printf "%G"` "'+Path+File+'"'));
        // Change permissions to that of parent directory
        Libc.system(PChar('chmod `find "'+Path+'." -name "." -maxdepth 1 -printf "%m"` "'+Path+File+'"'));
Locked