diff options
author | Tobias Mueller <tobiasmue@gnome.org> | 2009-11-05 04:31:25 +0800 |
---|---|---|
committer | Tobias Mueller <tobiasmue@gnome.org> | 2009-11-06 03:00:31 +0800 |
commit | c46630b0d54a31c9b27ed728f2c39283f1eef786 (patch) | |
tree | c240c3ced0c6ae42104c220ceac6b614d839276c /plugins | |
parent | 8cff3c4e4cf078307c600bb5ce69f50912abdd63 (diff) | |
download | gsoc2013-evolution-c46630b0d54a31c9b27ed728f2c39283f1eef786.tar gsoc2013-evolution-c46630b0d54a31c9b27ed728f2c39283f1eef786.tar.gz gsoc2013-evolution-c46630b0d54a31c9b27ed728f2c39283f1eef786.tar.bz2 gsoc2013-evolution-c46630b0d54a31c9b27ed728f2c39283f1eef786.tar.lz gsoc2013-evolution-c46630b0d54a31c9b27ed728f2c39283f1eef786.tar.xz gsoc2013-evolution-c46630b0d54a31c9b27ed728f2c39283f1eef786.tar.zst gsoc2013-evolution-c46630b0d54a31c9b27ed728f2c39283f1eef786.zip |
Build filename using g_build_filename instead of hardcoding forward-slash
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/backup-restore/backup-restore.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/backup-restore/backup-restore.c b/plugins/backup-restore/backup-restore.c index ed7401eb4c..50db1bbf76 100644 --- a/plugins/backup-restore/backup-restore.c +++ b/plugins/backup-restore/backup-restore.c @@ -73,14 +73,16 @@ sanity_check (const gchar *filename) { gchar *command; gint result; - gchar *quotedfname; + gchar *quotedfname, *toolfname; quotedfname = g_shell_quote(filename); + toolfname = g_build_filename (EVOLUTION_TOOLSDIR, "evolution-backup", NULL); - command = g_strdup_printf ("%s/evolution-backup --check %s", EVOLUTION_TOOLSDIR, quotedfname); + command = g_strdup_printf("%s --check %s", toolfname, quotedfname); result = system (command); g_free (command); g_free (quotedfname); + g_free (toolfname); #ifdef HAVE_SYS_WAIT_H g_message ("Sanity check result %d:%d %d", WIFEXITED (result), WEXITSTATUS (result), result); |