test-chmtime: work around Windows limitation
commitc893961d488d8e3ecb7dbcfdb3591bc151b4c9bf
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 4 May 2009 14:45:46 +0000 (4 16:45 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 4 May 2009 14:45:46 +0000 (4 16:45 +0200)
tree18f92e6c403121bf569477fc9c1ab73f4b5159b2
parent9251a4261fdfad5a7eacc04aa7efac47ef3c861e
test-chmtime: work around Windows limitation

Windows has problems changing the mtime when the file is write protected,
even by the owner of said file.

Add a Windows-only workaround to change the mode if necessary before
trying to change the mtime.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
test-chmtime.c