[Box Backup-commit] COMMIT r1189 - box/chris/merge/bin/bbackupd

boxbackup-dev@fluffy.co.uk boxbackup-dev@fluffy.co.uk
Sun, 03 Dec 2006 10:31:49 +0000


Author: chris
Date: 2006-12-03 10:31:49 +0000 (Sun, 03 Dec 2006)
New Revision: 1189

Modified:
   box/chris/merge/bin/bbackupd/BackupDaemon.cpp
Log:
Log failure to rename ID map files. (refs #3)


Modified: box/chris/merge/bin/bbackupd/BackupDaemon.cpp
===================================================================
--- box/chris/merge/bin/bbackupd/BackupDaemon.cpp	2006-12-03 10:30:02 UTC (rev 1188)
+++ box/chris/merge/bin/bbackupd/BackupDaemon.cpp	2006-12-03 10:31:49 UTC (rev 1189)
@@ -1807,6 +1807,10 @@
 #endif
 		if(::rename(newmap.c_str(), target.c_str()) != 0)
 		{
+			::syslog(LOG_ERR, "failed to rename ID map: "
+				"%s to %s: %s",
+				newmap.c_str(), target.c_str(),
+				strerror(errno));
 			THROW_EXCEPTION(CommonException, OSFileError)
 		}
 	}