[Box Backup-dev] Windows branch
Chris Wilson
boxbackup-dev@fluffy.co.uk
Thu, 13 Jul 2006 01:39:04 +0100 (BST)
Hi Charles,
On Wed, 12 Jul 2006, Charles Lecklider wrote:
>> Restored Files Attributes Incorrect
>>
>> Pete Jalajas reports that the date stamps of restored files are the
>> current time, not the datestamp of the original file (or of the time
>> when the file was backed up). Nor are Access Control Lists or Windows
>> file attributes restored.
>>
>> * It seems that there's no API to set the date stamps on files until
>> Windows Vista. Since I don't have a copy of Vista, I can't test this.
>
> Is that still the current position?
It was, until now :-)
> I'm just wondering what's wrong with SetFileAttributes
> (http://msdn.microsoft.com/library/en-us/fileio/fs/setfileattributes.asp)
> and SetFileTime
> (http://msdn.microsoft.com/library/en-us/sysinfo/base/setfiletime.asp).
>
> Am I missing something obvious or subtle?
No, I think you are absolutely right. I overlooked these API functions. I
think I was looking at SetFileInformationByHandle.
This should allow me to fix the restoring part of the bbackupd unit tests
on Windows. Thanks!
Cheers, Chris.
--
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |