[ease] Fix saving filenames with spaces (or other escaped chars).
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease] Fix saving filenames with spaces (or other escaped chars).
- Date: Tue, 22 Jun 2010 18:03:07 +0000 (UTC)
commit d052a8a097902ef76905617f0b5e5afd26ae181f
Author: Nate Stedman <natesm gmail com>
Date: Tue Jun 22 14:02:36 2010 -0400
Fix saving filenames with spaces (or other escaped chars).
src/ease-temp.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ease-temp.vala b/src/ease-temp.vala
index cf731f9..540d195 100644
--- a/src/ease-temp.vala
+++ b/src/ease-temp.vala
@@ -129,11 +129,11 @@ public static class Ease.Temp : Object
* @param filename The filename of the archive to save to.
*/
public static void archive(string temp_path, string filename) throws Error
- {
+ {
// TODO: implementation with libarchive
var file = GLib.File.new_for_path(filename);
string last_path = file.get_basename();
- Posix.system("cd %s; tar -cf %s `ls`; mv %s %s".printf(temp_path, last_path, last_path, filename));
+ Posix.system("cd \"%s\"; tar -cf \"%s\" `ls`; mv \"%s\" \"%s\"".printf(temp_path, last_path, last_path, filename));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]