From ae3f8cf9a4a03c62c6c12968b38b2352388df91c Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Fri, 21 Jun 2013 14:15:42 -0500 Subject: [PATCH] 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 --- src/lxc/lxccontainer.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.47.2