[Wine] zFTPServer in wine

Nicklas wineforum-user at winehq.org
Thu Jun 5 03:00:59 CDT 2008


I'm currently experimenting on running zFTPServer (http://www.zftpserver.com) 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:

        // 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+'"'));

More information about the wine-users mailing list