aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2006-03-15 18:05:43 +0000
committerMicah Anderson <micah@riseup.net>2006-03-15 18:05:43 +0000
commit0e353b42dba44211f42108c29f3f9169aecf4e54 (patch)
tree0c38921c8bf34b77dcd066bf622489ea408ad624
parente94597ad053204c0a056505fe3f017ff325489fd (diff)
downloadbackupninja-0e353b42dba44211f42108c29f3f9169aecf4e54.tar.gz
backupninja-0e353b42dba44211f42108c29f3f9169aecf4e54.tar.bz2
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
-rw-r--r--ChangeLog1
-rw-r--r--lib/vserver.in2
2 files changed, 2 insertions, 1 deletions
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.";