[tracker/rss-enclosures] libtracker-data: Fix restore from temporary files
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] libtracker-data: Fix restore from temporary files
- Date: Wed, 24 Nov 2010 02:10:25 +0000 (UTC)
commit 6b0bae01acbf2a7dbfe104adc88e2cb070d5b4ba
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]