From: Serge Hallyn Date: Fri, 21 Jun 2013 19:15:42 +0000 (-0500) Subject: Accept more word delimiters when updating hooks X-Git-Tag: lxc-1.0.0.alpha1~1^2~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae3f8cf9a4a03c62c6c12968b38b2352388df91c;p=thirdparty%2Flxc.git Accept more word delimiters when updating hooks When updating container names in hook files during a container clone, we substitute the new container name for the old any time the old name shows up as a separate word. This patch adds the four characters '.,_-' as additional delimiters. Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index b1a05b4af..b6d5b2ff5 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -1524,6 +1524,10 @@ static int is_word_sep(char c) case '\t': case ' ': case '=': + case '.': + case ',': + case '_': + case '-': case '/': return 1; default: return 0;