Windows: fix built in touch
authorRod Widdowson <rdw@steadingsoftware.com>
Thu, 28 Oct 2010 17:34:41 +0000 (18:34 +0100)
committerDerrick Brashear <shadow@dementia.org>
Thu, 28 Oct 2010 17:46:37 +0000 (10:46 -0700)
commit68aace4054430105ceaf52ce8e316f3ae01e7dc8
tree63e2baf867eed1ba21036bc0cec7a6ecdbf930dd
parente1ed8ab1d93906e1b556de332fa32601a9a489fc
Windows:  fix built in touch

Recent versions of windows add a whole bunch of attributes above
A_ARCH.  (FILE_ATTRIBUTE_NOT_CONTENT_INDEXED was what bit be but
encryption of compression would do it).

This makes ~_A_ARCH not a good choice for testing nonwritability
of a file - so files with these new attributes just get silently ignored.

Using an explicit mask is much better.  So do that.

Change-Id: Ie176ffae1995dd50c70319e196c0d30420733ccf
Reviewed-on: http://gerrit.openafs.org/3182
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/config/touch.c