Date: Sun, 05 Apr 2015 14:55:58 +0800 From: Ting-Wei Lan <lantw44@gmail.com> To: rrking@member.ams.org Cc: gnome@FreeBSD.org, ports@FreeBSD.org Subject: Re: FreeBSD Port: evolution-3.12.11 Message-ID: <1428216958.83748.5.camel@gmail.com> In-Reply-To: <1428211186.18818.1.camel@acer.investineering.com> References: <1428211186.18818.1.camel@acer.investineering.com>
next in thread | previous in thread | raw e-mail | index | archive | help
於 六,2015-04-04 於 22:19 -0700,Randall R. King 提到: > Hi, > > A quick note to let you know that I had difficulty restoring data from a > backup (whatever version was running under FreeBSD 9.2). After a careful > look at the debug messages, it looked like the tar commands used in the > restoration used the option --strip-components=3 (or 2), and the tar > command barfed on that option (the '=' sign should be a space). Hiding > tar and linking tar to gtar fixed the problem. Perhaps the script(s) for > restoration should either lose the equal sign on the --strip-components > option or use gtar instead of tar? Thanks for finding the cause of the bug. Does the following patch work for you? If yes then I will file an upstream bug report with this patch attached. diff --git a/modules/backup-restore/evolution-backup-tool.c b/modules/backup -restore/evolution-backup-tool.c index 9604513..3eef5f9 100644 --- a/modules/backup-restore/evolution-backup-tool.c +++ b/modules/backup-restore/evolution-backup-tool.c @@ -538,13 +538,13 @@ 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", + "cd $DATADIR && tar --strip-components %d -xzf %s %s", quotedfname, data_dir, get_dir_level (data_dir)); run_cmd (command); g_free (command); command = g_strdup_printf ( - "cd $CONFIGDIR && tar xzf %s %s --strip-components=%d", + "cd $CONFIGDIR && tar --strip-components %d -xzf %s %s", quotedfname, config_dir, get_dir_level (config_dir)); run_cmd (command); g_free (command); > > Sincerely, > Randall R. King > > _______________________________________________ > freebsd-gnome@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-gnome > To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1428216958.83748.5.camel>