[anjuta] build-basic-autotools: Escape command correctly when installing with "su -c"
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] build-basic-autotools: Escape command correctly when installing with "su -c"
- Date: Thu, 17 Mar 2011 16:42:25 +0000 (UTC)
commit deec63dfe4c2527d5adfed049eeac423307229d1
Author: Johannes Schmid <jhs gnome org>
Date: Thu Mar 17 12:39:37 2011 -0400
build-basic-autotools: Escape command correctly when installing with "su -c"
Fixed rh#682475 - root install lacks \"
plugins/build-basic-autotools/plugin.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/build-basic-autotools/plugin.c b/plugins/build-basic-autotools/plugin.c
index f4273e3..b0213f9 100644
--- a/plugins/build-basic-autotools/plugin.c
+++ b/plugins/build-basic-autotools/plugin.c
@@ -1695,17 +1695,19 @@ build_install_dir (BasicAutotoolsPlugin *plugin, const gchar *dirname,
gchar* root = get_root_install_command(plugin);
gchar *build_dir = build_dir_from_source (plugin, dirname);
BuildProgram *prog;
-
+ gchar *command = g_shell_quote (CHOOSE_COMMAND (plugin, INSTALL));
+
prog = build_program_new_with_command (build_dir,
"%s %s",
root,
- CHOOSE_COMMAND (plugin, INSTALL));
+ command);
build_program_set_callback (prog, callback, user_data);
context = build_save_and_execute_command (plugin, prog, TRUE, err);
g_free (build_dir);
g_free(root);
+ g_free (command);
return context;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]