Index: backup.c
===================================================================
--- backup.c	(revision 35674)
+++ backup.c	(working copy)
@@ -81,7 +81,7 @@ backup (const char *filename)
 	/* FIXME compression type?" */
 	/* FIXME date/time stamp?" */
 	/* FIXME backup location?" */
-	command = g_strdup_printf ("cd $HOME && tar cf - .evolution .camel_certs | gzip > %s", filename);
+	command = g_strdup_printf ("cd $HOME && tar cf - .evolution .camel_certs | gzip > %s", g_shell_quote(filename));
 	s (command);
 	g_free (command);
 
@@ -117,7 +117,7 @@ restore (const char *filename)
 
 	CANCEL (complete);
 	txt = _("Extracting files from backup");
-	command = g_strdup_printf ("cd $HOME && gzip -cd %s| tar xf -", filename);
+	command = g_strdup_printf ("cd $HOME && gzip -cd %s| tar xf -", g_shell_quote(filename));
 	s (command);
 	g_free (command);
 
@@ -147,7 +147,7 @@ check (const char *filename)
 
 	g_return_if_fail (filename && *filename);
 
-	command = g_strdup_printf ("tar ztf %s | grep -e \"^\\.evolution/$\"", filename);
+	command = g_strdup_printf ("tar ztf %s | grep -e \"^\\.evolution/$\"", g_shell_quote(filename));
 	result = system (command);
 	g_free (command);
 
@@ -155,7 +155,7 @@ check (const char *filename)
 	if (result)
 		exit (result);
 
-	command = g_strdup_printf ("tar ztf %s | grep -e \"^\\.evolution/%s$\"", filename, GCONF_DUMP_FILE);
+	command = g_strdup_printf ("tar ztf %s | grep -e \"^\\.evolution/%s$\"", g_shell_quote(filename), GCONF_DUMP_FILE);
 	result = system (command);
 	g_free (command);
 
