lost+found was not being removed from the list of found_vservers
authormicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Wed, 15 Mar 2006 18:05:43 +0000 (18:05 +0000)
committermicah <micah@758a04ac-41e6-0310-8a23-8373a73cc35d>
Wed, 15 Mar 2006 18:05:43 +0000 (18:05 +0000)
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

ChangeLog
lib/vserver.in

index 5f4eb4d0c2543024b512d82577b49b310a547d82..05125bafe1568bed4826b6bf828ad3731f3b547d 100644 (file)
--- 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
index 8a585bf16787dddb506e53e65b8e1de5c194a202..8ac7b7e5fa76b18f300c683b271ddbf9d211998e 100644 (file)
@@ -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.";