summaryrefslogtreecommitdiff
path: root/bin/bbackupd/BackupClientDirectoryRecord.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-12-24 13:02:31 +0000
committerChris Wilson <chris+github@qwirx.com>2014-12-24 13:02:31 +0000
commit7801c51b005c5ed2f4ab8e0223669919af212bd2 (patch)
treef343c934dc229ea928e3d8a52511e0677acbad7c /bin/bbackupd/BackupClientDirectoryRecord.cpp
parent1ca8e7a4ad9b25df50a98a1b5472d4858c72dafa (diff)
Whitespace and wrapping fixes
Diffstat (limited to 'bin/bbackupd/BackupClientDirectoryRecord.cpp')
-rw-r--r--bin/bbackupd/BackupClientDirectoryRecord.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp
index 7334af14..4b053791 100644
--- a/bin/bbackupd/BackupClientDirectoryRecord.cpp
+++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp
@@ -463,7 +463,7 @@ bool BackupClientDirectoryRecord::SyncDirectoryEntry(
// administrator)
rNotifier.NotifyFileStatFailed(this, filename,
strerror(errno));
-
+
// FIXME move to NotifyFileStatFailed()
SetErrorWhenReadingFilesystemObject(rParams, filename);
}
@@ -581,19 +581,18 @@ bool BackupClientDirectoryRecord::SyncDirectoryEntry(
return false;
}
-
- // Here if the object is something to back up (file, symlink or dir, not excluded)
- // So make the information for adding to the checksum
-
+
+ // The object should be backed up (file, symlink or dir, not excluded).
+ // So make the information for adding to the checksum.
+
#ifdef WIN32
- // We didn't stat the file before,
- // but now we need the information.
+ // We didn't stat the file before, but now we need the information.
if(emu_stat(filename.c_str(), &file_st) != 0)
{
rNotifier.NotifyFileStatFailed(this,
- ConvertVssPathToRealPath(filename, rBackupLocation),
- strerror(errno));
-
+ ConvertVssPathToRealPath(filename, rBackupLocation),
+ strerror(errno));
+
// Report the error (logs and eventual email to administrator)
SetErrorWhenReadingFilesystemObject(rParams, filename);
@@ -616,6 +615,7 @@ bool BackupClientDirectoryRecord::SyncDirectoryEntry(
int64_t mSize;
// And then the name follows
} checksum_info;
+
// Be paranoid about structure packing
::memset(&checksum_info, 0, sizeof(checksum_info));