summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2012-05-23 23:08:39 +0100
committerRoger Leigh <rleigh@debian.org>2012-05-23 23:45:40 +0100
commit7702eb5abb23ff2c91e10ba5e4f75bdd48bebbf9 (patch)
tree7407b7de3dc4383579826bc8e3eb1d2cf00d1f17
parent96b10d979c314e327e9e27d70ae7d5d8b938bbf3 (diff)
downloadschroot-7702eb5abb23ff2c91e10ba5e4f75bdd48bebbf9.tar.gz
dchroot: Run command using /bin/sh, not user shell
-rw-r--r--bin/dchroot/dchroot-session.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dchroot/dchroot-session.cc b/bin/dchroot/dchroot-session.cc
index 242960e9..6450296f 100644
--- a/bin/dchroot/dchroot-session.cc
+++ b/bin/dchroot/dchroot-session.cc
@@ -90,7 +90,7 @@ session::get_user_command (sbuild::chroot::ptr& session_chroot,
std::string programstring = sbuild::string_list_to_string(command, " ");
command.clear();
- command.push_back(get_shell());
+ command.push_back("/bin/sh");
command.push_back("-c");
command.push_back(programstring);