From a906ba01c74b53036444e404fccb356bfb73850e Mon Sep 17 00:00:00 2001
From: intrigeri <intrigeri@boum.org>
Date: Fri, 12 Oct 2007 17:14:34 +0000
Subject: [PATCH] fixed Trac#11

---
 ChangeLog          | 6 ++++--
 src/backupninja.in | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 50e4760..62df6f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,7 @@
 version 0.9.5 -- unreleased
     ninjareport
 	 . Added first draft of method to aggregate reports from many servers into
-	   one email. Requires logtail, rsync, configuration of reporthost, 
+	   one email. Requires logtail, rsync, configuration of reporthost,
 	   reportdirectory and reportuser in backupninja.conf. Configure cron to
 	   run once a day, and individual backupninjas not to report by email their
 	   status, then enjoy one email report from all hosts, rather than multiple
@@ -9,7 +9,9 @@ version 0.9.5 -- unreleased
 	 . Fixed checks on configuration files permissions, since the patch
 	   applied to fix #370396 broke this, especially for configuration files
 	   created with permissions 000 by an older ninjahelper version.
-	 . Enhanced portability for other platforms 
+	 . Enhanced portability for other platforms
+	 . Fixed Trac#11 (quoting needed to prevent shell expansion, broke the
+           toint function sometimes)
     handler changes
         ldap:
 	 . Fixed shell command quoting issues, missing 'then' clauses, cleaned up
diff --git a/src/backupninja.in b/src/backupninja.in
index ef959f2..0cd186a 100755
--- a/src/backupninja.in
+++ b/src/backupninja.in
@@ -178,7 +178,7 @@ function tolower() {
 
 # simple to integer function
 function toint() {
-	echo "$1" | tr -d [:alpha:] 
+	echo "$1" | tr -d '[:alpha:]'
 }
 
 #
-- 
GitLab