aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-26 11:28:33 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-26 11:29:18 +0100
commit8b8d871724d9cc83940cf8b090030a04e900bc04 (patch)
tree928767bdc98894c9cbbfdf818f9bdf5f8b06058c
parent58db9693c86d0fd71c44c44462dacfccf7572c8c (diff)
downloadpaludis-8b8d871724d9cc83940cf8b090030a04e900bc04.tar.gz
paludis-8b8d871724d9cc83940cf8b090030a04e900bc04.tar.xz
Fix arg passing to user commands
Fixes: ticket:973
-rw-r--r--src/clients/cave/script_command.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clients/cave/script_command.cc b/src/clients/cave/script_command.cc
index fa9c8d5..d4aae5c 100644
--- a/src/clients/cave/script_command.cc
+++ b/src/clients/cave/script_command.cc
@@ -69,7 +69,7 @@ ScriptCommand::run(
std::string arg_str;
for (Sequence<std::string>::ConstIterator n(args->begin()), n_end(args->end()) ;
n != n_end ; ++n)
- arg_str = " " + args::escape(*n);
+ arg_str = arg_str + " " + args::escape(*n);
Process process((ProcessCommand(stringify(_imp->executable) + arg_str)));
int retcode(process.run().wait());