summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-08-31 22:16:17 +0000
committerChris Wilson <chris+github@qwirx.com>2006-08-31 22:16:17 +0000
commit3a30b42c228ae481bd95a4363c853f477573b20d (patch)
tree1fd2a8726bf1f1daa7de701e1cadaef195658760 /lib
parent6737cc23c9b9cd71060b06f41283dca9549898ef (diff)
* lib/backupclient/BackupStoreFile.cpp
Close file before trying to apply attributes to it. Otherwise, when we close it the timestamp will be updated on Win32 (refs #3)
Diffstat (limited to 'lib')
-rw-r--r--lib/backupclient/BackupStoreFile.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/backupclient/BackupStoreFile.cpp b/lib/backupclient/BackupStoreFile.cpp
index f5a55207..278bf50a 100644
--- a/lib/backupclient/BackupStoreFile.cpp
+++ b/lib/backupclient/BackupStoreFile.cpp
@@ -289,6 +289,8 @@ void BackupStoreFile::DecodeFile(IOStream &rEncodedFile, const char *DecodedFile
// Copy it out to the file
stream->CopyStreamTo(out);
}
+
+ out.Close();
// Write the attributes
stream->GetAttributes().WriteAttributes(DecodedFilename);