[PATCH 1/4] ntdll: Implement retrieving DOS attributes in NtQueryInformationFile (try 2).

Erich E. Hoover erich.e.hoover at gmail.com
Thu Dec 18 18:12:38 CST 2014

This patchset is very loosely based on a patch by Dan Kegel
I will later also need extended attribute support for adding stored
file security descriptors (SDs) and ACLs.  However, since DOS
attributes are much simpler to support it makes sense to implement DOS
attributes first and then implement SD/ACL support afterwards once all
of this infrastructure is in place.

This patch implements retrieving DOS attributes from the Samba format
"user.DOSATTRIB" extended attribute using fgetxattr.  This version has
been updated with two small improvements suggested by Sebastian
1) hexattr has been "turned up to 11" (allowing room for the prefix,
maximum 32-bit hex value, and a NULL terminator)
2) ENOTSUP has been replaced with ENOSYS to fix mingw compile issues
on the testbot

Currently only Linux extended attributes are supported, when they are
not available at compile time the ports implementation will fall back
to a "not-supported" return and any such attributes will be ignored.
It is necessary to place this feature in ports so that Mac and FreeBSD
can be supported separately, as the semantics of these APIs are quite
different on such systems (patches to come after this initial
implementation).  The Mac and FreeBSD versions are also well-tested at
this point and the configure checks are modelled after the approach
Samba uses.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-Implement-retrieving-DOS-attributes-in-NtQuery.patch
Type: text/x-diff
Size: 5803 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20141218/cae2a8ed/attachment.patch>

More information about the wine-patches mailing list