From 0e353b42dba44211f42108c29f3f9169aecf4e54 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 15 Mar 2006 18:05:43 +0000 Subject: [PATCH] lost+found was not being removed from the list of found_vservers because the + was being interpreted by grep -E, I've escaped it so it will properly be removed --- ChangeLog | 1 + lib/vserver.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5f4eb4d..05125ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ version 0.9.4 -- unreleased lib changes vserver: . init_vservers: fixed Debian bug #351083 (improper readlink syntax) + . found_vservers: escaped special grep repetition character + version 0.9.3 -- February 1st, 2006 autotools fixes diff --git a/lib/vserver.in b/lib/vserver.in index 8a585bf..8ac7b7e 100644 --- a/lib/vserver.in +++ b/lib/vserver.in @@ -63,7 +63,7 @@ init_vservers() { "vservers enabled in $conffile, but VROOTDIR ($VROOTDIR) does not exist."; return fi - found_vservers=`ls $VROOTDIR | grep -E -v "lost+found|ARCHIVES" | tr "\n" " "` + found_vservers=`ls $VROOTDIR | grep -E -v "lost\+found|ARCHIVES" | tr "\n" " "` if [ -z "$found_vservers" ]; then `if [ "$arg" = nodialog ]; then echo warning; else echo "msgBox warning"; fi` \ "vservers enabled in $conffile, but no vserver was found in $VROOTDIR."; -- 2.30.2