[evolution] Bug 747461 - The tar command used to restore backups doesn't work on FreeBSD



commit d9e63d55cd8ce597d9668dd4dd6f78c0900c9a94
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Wed Apr 8 12:21:47 2015 +0200

    Bug 747461 - The tar command used to restore backups doesn't work on FreeBSD

 modules/backup-restore/evolution-backup-tool.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/modules/backup-restore/evolution-backup-tool.c b/modules/backup-restore/evolution-backup-tool.c
index 840cee1..a288ce6 100644
--- a/modules/backup-restore/evolution-backup-tool.c
+++ b/modules/backup-restore/evolution-backup-tool.c
@@ -538,14 +538,14 @@ restore (const gchar *filename,
                g_mkdir_with_parents (e_get_user_config_dir (), 0700);
 
                command = g_strdup_printf (
-                       "cd $DATADIR && tar xzf %s %s --strip-components=%d",
-                       quotedfname, data_dir, get_dir_level (data_dir));
+                       "cd $DATADIR && tar --strip-components %d -xzf %s %s",
+                        get_dir_level (data_dir), quotedfname, data_dir);
                run_cmd (command);
                g_free (command);
 
                command = g_strdup_printf (
-                       "cd $CONFIGDIR && tar xzf %s %s --strip-components=%d",
-                       quotedfname, config_dir, get_dir_level (config_dir));
+                       "cd $CONFIGDIR && tar --strip-components %d -xzf %s %s",
+                       get_dir_level (config_dir), quotedfname, config_dir);
                run_cmd (command);
                g_free (command);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]