3 Jul
2024
3 Jul
'24
8:06 p.m.
On Wed Jul 3 19:44:30 2024 +0000, Paul Gofman wrote:
It fails for devfs block devices, which is what that code operates on. Sure, but I specifically checked here that for, e. g., /dev/sda1 (brw-rw---- 1 root disk) open() just fails without read permissions for user on file with EACCESS, with or without O_RDONLY (which should be present always btw, 'man open' says "The argument flags must include one of the following access modes: O_RDONLY, O_WRONLY, or O_RDWR"). Actually, the difference happens when $WINEPREFIX\\dosdevices\\c:: or z:: point to a directory (which is the case for common drives like C: and Z:).
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5976#note_75052