El Lunes, 8 de Marzo de 2004 23:20, wine-devel-request@winehq.org escribió:
The file wine/server/file.c contains in line 151 to 156 (function create_file) the next lines: ----------------------------------------------------------------------------------------------------------------- mode = (attrs & FILE_ATTRIBUTE_READONLY) ? 0444 : 0666;
if (len >= 4 && (!strcasecmp( name + len - 4, ".exe" ) || !strcasecmp( name + len - 4, ".com" ))) mode |= 0111; ------------------------------------------------------------------------------------------------------------------
That is a problem for a instal.lation programs or another programs that writen a Driver *.drv or a *.dll file, or another unknown extension. When created the file, the permisions not be 0555 or 0777, and the program instal.led not works, wine cannot execute them.
My opinion, is that the files in a Windows Filesystem are virtually executable (the flag not exist, and all is an executable if one loads to exec) I cray that we must written the mode|=0111, whithout query the extension '.exe' '.com' '.drv' '.dll', etc... (note that the code only wants .exe and .com)
I have write these modification and solutions the problem. ---------------------------------------------------------------------------------------------- mode = (attrs & FILE_ATTRIBUTE_READONLY) ? 0444 : 0666; mode |= 0111; ----------------------------------------------------------------------------------------------