From fd7d854e6c352ac403d403ce7664e712b41c6fb4 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Mon, 8 Aug 2005 22:15:38 +0000 Subject: [PATCH] fixed detection of commented lines in config-files; formerly, only a single '#' was detected which does not really make sense for comments... git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2170 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/scripts/vserver.functions | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util-vserver/scripts/vserver.functions b/util-vserver/scripts/vserver.functions index 73558ee..e914133 100644 --- a/util-vserver/scripts/vserver.functions +++ b/util-vserver/scripts/vserver.functions @@ -140,7 +140,7 @@ function _generateCCapabilityOptions test -e "$f" || return 0 while read cap; do case x"$cap" in - (x|x\#) ;; + (x|x\#*) ;; (*) OPTS_VATTRIBUTE=( "${OPTS_VATTRIBUTE[@]}" --ccap "$cap" );; esac done <"$f" @@ -155,7 +155,7 @@ function _generateBCapabilityOptions test -e "$f" || return 0 while read cap; do case x"$cap" in - (x|x\#) ;; + (x|x\#*) ;; (*) OPTS_VATTRIBUTE=( "${OPTS_VATTRIBUTE[@]}" --bcap "$cap" );; esac done <"$f" @@ -176,7 +176,7 @@ function _generateCapabilityOptions while read cap; do case x"$cap" in - (x|x\#) ;; + (x|x\#*) ;; (!CAP_SYSCHROOT) CAP_OPTS=( "${CAP_OPTS[@]}" --cap "$cap" ) CAPCHROOT_OPTS=( "${CAPCHROOT_OPTS[@]}" --nochroot ) @@ -328,7 +328,7 @@ function _generateFlagOptions test ! -e "$vdir"/flags || \ while read flag; do case x"$flag" in - (x|x\#) ;; + (x|x\#*) ;; (xnamespace) ;; (xfakeinit) _IS_FAKEINIT=1 -- 1.8.1.5