Dmitry Timoshkov dmitry@codeweavers.com wrote:
- if (len >= 4 &&
(!strcasecmp( name + len - 4, ".exe" ) || !strcasecmp( name + len - 4, ".com" )))- {
if (mode & S_IRUSR)mode |= S_IXUSR;if (mode & S_IRGRP)mode |= S_IXGRP;if (mode & S_IROTH)mode |= S_IXOTH;- }
- if (mode & S_IRUSR)
mode |= S_IXUSR;- if (mode & S_IRGRP)
mode |= S_IXGRP;- if (mode & S_IROTH)
mode |= S_IXOTH;
Please ignore this patch, I need to figure out at which point the exec permissions are dropped. Other patches in the sequence do not depend on this one (and actually are all independent changes).