[Wine] archive file attribute

Daniel daniel at connect2.com
Sat May 10 20:08:18 CDT 2008

Dan Kegel wrote:
> On Thu, May 8, 2008 at 10:31 PM, Daniel <daniel at connect2.com> wrote:
>> I am trying to use cabarc to create a cabinet file, but it is very important
>> that the files added to the cabinet not have the archive attribute set.  It
>> seems that all files appear to have the archive flag set in wine, is it
>> possible to turn off the archive flag?
> Uh-oh.  Right now Wine always sets it. see
> http://source.winehq.org/source/dlls/ntdll/directory.c#L948
> If you can compile wine, you can comment that line out,
> might do what you want.
> Why is it important to not have the archive attribute set?
> Perhaps Wine could have a winecfg option to not set it,
> or to check an extended attribute
> ( http://en.wikipedia.org/wiki/Extended_file_attributes )...
> - Dan
I commented out this line and three more in dlls/ntdll/file.c to turn off the 
archive flag and now everything is working.  What I am doing is allowing a Linux 
computer to create a MS symbol store from a collection of exe's and pdb's. 
Basically you just need to put the files in correct spot and if you like you can 
compress them using cabarc, then I just serve them up with apache.  But if you 
compress them and the archive flag is set on the file in the archive, Visual 
Studio thinks the file is bad.

It would be nice if you could set the archive attribute using something like 
attrib.exe in windows, or Samba uses maps the user executable flag to archive.

More information about the wine-users mailing list