[tracker] libtracker-data: Fix restore from temporary files
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Fix restore from temporary files
- Date: Mon, 25 Oct 2010 12:54:18 +0000 (UTC)
commit 35bdb9932a3c670b967e851290b3c139884f03b5
Author: Jürg Billeter <j bitron ch>
Date: Wed Oct 13 14:50:49 2010 +0200
libtracker-data: Fix restore from temporary files
src/libtracker-data/tracker-db-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index 5ca4a5f..ee1cd85 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -1186,7 +1186,7 @@ tracker_db_manager_restore_from_temp (void)
new_filename = g_strdup_printf ("%s.tmp", cpath);
g_message (" Renaming journal:'%s' -> '%s'",
cpath, new_filename);
- g_rename (cpath, new_filename);
+ g_rename (new_filename, cpath);
g_free (new_filename);
directory = g_path_get_dirname (cpath);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]