commit | aeb821cd04a8b2a0a93ab8b72daf69bbf8ae72c2 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Mon Oct 12 19:41:07 2009 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Mon Oct 12 20:00:23 2009 +0400 |
tree | f45517c6adeb85428a7b088e2cc367ed3f0dbc2c | |
parent | 17f19a3249f9e0c8c890812ac2da19cb70fa22b8 [diff] |
vzctl enter: fix argv[0] for sh case vzctl enter doesn't work for a container that use busybox as a shell. This is because busybox relies on argv[0] as an 'applet' name and obviously there is no 'bash' applet in it. Fix is to change argv[0] accordingly before trying to execute /bin/sh. Bug reported by Floris Bos <openvz-bug@maxnet.eu> http://bugzilla.openvz.org/1314 Signed-off-by: Kir Kolyshkin <kir@openvz.org>