From 482b8741b77d280841922e5ecb83e86e3d7aaee0 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Thu, 3 Jan 2008 23:21:07 +0000 Subject: [PATCH] fix init script so that it doesn't result in a regex with a null alternation ie. |apparmor --- parser/rc.apparmor.functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parser/rc.apparmor.functions b/parser/rc.apparmor.functions index 512b6df6a..bd9014cbd 100644 --- a/parser/rc.apparmor.functions +++ b/parser/rc.apparmor.functions @@ -103,7 +103,8 @@ STATUS=0 # Test if the apparmor "module" is present. is_apparmor_present() { - local modules="" + local modules=$1 + shift while [ $# -gt 0 ] ; do modules="$modules|$1"