[Devel] [PATCH] fix bin/vznetaddbr to work with bash >= 3.2

Kir Kolyshkin kir at openvz.org
Fri Oct 24 11:56:17 PDT 2008


Anton, thanks for the patch.

Added to GIT:
http://git.openvz.org/?p=vzctl;a=commit;h=34934b090b03a996f7bbcc9b13145390efc56eb6

Will appear in vzctl >= 3.0.23.

Anton Protopopov wrote:
> Hi.
>
> Script vznetaddbr would not work properly with bash >= 3.2 because of
>
> "Bash-3.2 changed the behavior of the [[ command's `=~' operator when the
> right-hand side was quoted: it matched the quoted portions as strings."
> (see
> http://git.altlinux.org/people/ldv/packages/?p=bash.git;a=commit;h=upstream
> for more datailes)
>
> So, with bash >= 3.2 no bridges will be added.
>
> Patch, that fixed that can be found in ``upstream-commits'' branch
> http://git.altlinux.org/people/aspsk/packages/?p=vzctl.git;a=shortlog;h=refs/heads/upstream-commits
> of my vzctl git:
> git://git.altlinux.org/people/aspsk/packages/vzctl.git
> <http://git.altlinux.org/people/aspsk/packages/vzctl.git>
>
> Anton




More information about the Devel mailing list