summaryrefslogtreecommitdiffstats
path: root/enable-exec-in-new-partition.patch
blob: fca5bb747f207085dd9a8d01a40e33edcbb9909a (plain)
1
2
3
4
5
6
7
8
9
10
11
--- vserver	2011-04-21 03:09:34.000000000 +0200
+++ /usr/sbin/vserver	2011-04-21 03:12:45.000000000 +0200
@@ -208,7 +208,7 @@
 . $__PKGLIBDIR/vserver.functions
 
 # Enter the namespace early so we can test for files inside the guest
-test "$cmd" != enter -a "$cmd" != stop || \
+test "$cmd" != enter -a "$cmd" != stop -a "$cmd" != exec || \
     test -n "$OPTION_NONAMESPACE" || isAvoidNamespace "$VSERVER_DIR" || \
     ! isVserverRunning "$VSERVER_DIR" || {
         $_VNAMESPACE --enter "$VSERVER_DIR" -- $_VSERVER ----nonamespace "${OPTIONS_ORIG[@]}"