30 Nov
2022
30 Nov
'22
4:36 p.m.
Zebediah Figura (@zfigura) commented about dlls/ntdll/unix/file.c:
+static void fd_set_dos_attrib( int fd, ULONG attr ) +{ +#ifdef HAVE_LINUX_MSDOS_FS_H + int fat_errno = 0; +#endif + int xattr_errno = 0; + +#ifdef HAVE_LINUX_MSDOS_FS_H + /* try setting FAT file attributes */ + if (fd_set_fat_dos_attrib( fd, attr ) == -1) + fat_errno = errno; +#endif + + /* try setting DOS attributes into extended attributes */ + if (fd_set_xattr_dos_attrib( fd, attr ) == -1) + xattr_errno = errno; Why try to set both attributes?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1414#note_18130