From: Enrico Scholz Date: Mon, 8 Aug 2005 22:15:38 +0000 (+0000) Subject: fixed detection of commented lines in config-files; formerly, only a X-Git-Tag: version_0_30_210~111 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd7d854e6c352ac403d403ce7664e712b41c6fb4;p=util-vserver.git 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 --- 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