aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-03-29 15:29:30 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-03-29 15:29:30 +0000
commit4c3b58c0d992aeb5f78b64b6bfa778213eea94fe (patch)
tree765ce4d2310034241214401071182dc650853ec9
parent64047b2d7d1979b8a1b5493f6e455a8f2798fec1 (diff)
downloadpaludis-4c3b58c0d992aeb5f78b64b6bfa778213eea94fe.tar.gz
paludis-4c3b58c0d992aeb5f78b64b6bfa778213eea94fe.tar.xz
Escape properly
-rw-r--r--src/clients/cave/cmd_execute_resolution.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clients/cave/cmd_execute_resolution.cc b/src/clients/cave/cmd_execute_resolution.cc
index bdf4ca1..51165aa 100644
--- a/src/clients/cave/cmd_execute_resolution.cc
+++ b/src/clients/cave/cmd_execute_resolution.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009, 2010, 2011 Ciaran McCreesh
+ * Copyright (c) 2009, 2010, 2011, 2012 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -465,7 +465,7 @@ namespace
for (args::StringSetArg::ConstIterator p(cmdline.import_options.a_unpackaged_repository_params.begin_args()),
p_end(cmdline.import_options.a_unpackaged_repository_params.end_args()) ;
p != p_end ; ++p)
- command.append(" --" + cmdline.import_options.a_unpackaged_repository_params.long_name() + " '" + *p + "'");
+ command.append(" --" + cmdline.import_options.a_unpackaged_repository_params.long_name() + " " + args::escape(*p));
}
IPCInputManager input_manager(env.get(), std::bind(&set_output_manager, std::ref(job_mutex),
@@ -531,7 +531,7 @@ namespace
for (args::StringSetArg::ConstIterator p(cmdline.import_options.a_unpackaged_repository_params.begin_args()),
p_end(cmdline.import_options.a_unpackaged_repository_params.end_args()) ;
p != p_end ; ++p)
- command.append(" --" + cmdline.import_options.a_unpackaged_repository_params.long_name() + " '" + *p + "'");
+ command.append(" --" + cmdline.import_options.a_unpackaged_repository_params.long_name() + " " + args::escape(*p));
}
IPCInputManager input_manager(env.get(), std::bind(&set_output_manager, std::ref(job_mutex),
@@ -589,7 +589,7 @@ namespace
for (args::StringSetArg::ConstIterator p(cmdline.import_options.a_unpackaged_repository_params.begin_args()),
p_end(cmdline.import_options.a_unpackaged_repository_params.end_args()) ;
p != p_end ; ++p)
- command.append(" --" + cmdline.import_options.a_unpackaged_repository_params.long_name() + " '" + *p + "'");
+ command.append(" --" + cmdline.import_options.a_unpackaged_repository_params.long_name() + " " + args::escape(*p));
}
IPCInputManager input_manager(env.get(), std::bind(&set_output_manager, std::ref(job_mutex),