From: micah Date: Wed, 15 Mar 2006 18:05:43 +0000 (+0000) Subject: lost+found was not being removed from the list of found_vservers X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=606a958ada84c0d84ff721d977a04cc9b2279aca;p=matthijs%2Fupstream%2Fbackupninja.git 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 git-svn-id: http://code.autistici.org/svn/backupninja/trunk@372 758a04ac-41e6-0310-8a23-8373a73cc35d --- 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.";