On Linux, the FAT filesystem implementation allows DOS file attributes to be applied to files and
queried through a family of ioctls. Note that these ioctls are not yet supported by the NTFS or CIFS
drivers.
Signed-off-by: Joel Holdsworth <joel(a)airwebreathe.org.uk>
--
v4: ntdll: Add integration with Linux FAT file attributes
https://gitlab.winehq.org/wine/wine/-/merge_requests/1414
find_device_from_devnode was guarded by HAVE_SYS_INOTIFY_H, alas its
use in process_monitor_event was not, so linking failed.
On the way reduce the scope of a variable (which makes sense per se
and avoids introducing a compiler warning with this change).
--
v2: winebus.sys: Fix the build without HAVE_SYS_INOTIFY_H
winebus.sys: Fix the build without HAVE_SYS_INOTIFY_H
https://gitlab.winehq.org/wine/wine/-/merge_requests/1810
GCC12.2 warns about dereferencing a pointer to RpcPktHdr
while it has been allocated to the size of one of the packet
(hence smaller in some cases).
/home/eric/work/wine/dlls/rpcrt4/rpc_message.c:111:26: warning: array subscript 'RpcPktHdr[0]' is partly outside array bounds of 'unsigned char[24]' [-Warray-bounds]
111 | Header->common.rpc_ver = RPC_VER_MAJOR;
This patch fixes the warnings by accessing the created object
through a pointer to their type (and not through the union).
Notes:
- the 'max(sizeof(...), FIELD_OFFSET(...))' thingie in
RPCRT4_BuildBindNackHeader avoids also a warning as the
FIELD_OFFSET() can be smaller than the size of the structure.
This could be avoided by using a flexible array member for
the 'protocols' field instead of 'protocols[ANYSIZE_ARRAY]'.
- I only changed the allocation routines when the allocated size
is smaller than the union.
If the strategy is validated, one could consider applying the
same allocation strategy to all helpers for symmetry reasons.
Hence the draft status for now, waiting for feedback.
Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com>
--
v2: rpcrt4: Fix GCC12.2 warnings.
rpcrt4: Pass a common header to RPCRT4_BuildCommonHeader.
https://gitlab.winehq.org/wine/wine/-/merge_requests/1545