[4/4] server: Do not limit execute file access to .exe and .com files.

Dmitry Timoshkov dmitry at codeweavers.com
Tue Mar 15 06:27:58 CDT 2011


Dmitry Timoshkov <dmitry at 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).

-- 
Dmitry.



More information about the wine-devel mailing list