[tracker/journal: 18/18] libtracker-data: Fix restore from temporary files
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/journal: 18/18] libtracker-data: Fix restore from temporary files
- Date: Wed, 13 Oct 2010 13:10:55 +0000 (UTC)
commit 2830f0592d312f440b5b2eb7867d7c9345684879
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 21e5a56..13c8d67 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]