summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-04-25 13:41:38 -0400
committerTingPing <tingping@fedoraproject.org>2014-06-04 10:38:23 -0400
commit5849a0588e7b12003f8b9afcfcdc31f46c6b2329 (patch)
tree0eb7fa462318506be8b4303a9b32cb6a888c47cf /src/common/outbound.c
parentb8c02f71d9bbaf805534d5327d8c3935a3b87636 (diff)
Use glib to parse and launch commands for util_exec
Fixes #958
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index 5dd0d05f..53dd742d 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -1841,8 +1841,10 @@ cmd_exec (struct session *sess, char *tbuf, char *word[], char *word_eol[])
 				char **argv;
 				int argc;
 
-				my_poptParseArgvString (cmd, &argc, &argv);
+				g_shell_parse_argv (cmd, &argc, &argv, NULL);
 				execvp (argv[0], argv);
+
+				g_strfreev (argv);
 			}
 			/* not reached unless error */
 			/*printf("exec error\n");*/