From 38a5ff42e09da3b63bcd820eaaaf7b13de74f4f5 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 15 Aug 2013 13:35:24 +0200 Subject: [PATCH] show the errno in the debug when renaming the db fails --- src/csync_statedb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/csync_statedb.c b/src/csync_statedb.c index fa872e8f8a..5d74e952f8 100644 --- a/src/csync_statedb.c +++ b/src/csync_statedb.c @@ -30,6 +30,7 @@ #include #include #include +#include #include "c_lib.h" #include "csync_private.h" @@ -352,7 +353,7 @@ int csync_statedb_close(CSYNC *ctx, const char *statedb, int jwritten) { /* Move the tmp-db to the real one. */ if (c_rename(statedb_tmp, statedb) < 0) { CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG, - "Renaming tmp db to original db failed."); + "Renaming tmp db to original db failed. (errno=%d)", errno); rc = -1; } else { CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG,