summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog1
-rwxr-xr-xinit.d/20restore-etckeeper2
2 files changed, 2 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index f38f6aa..b48157f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ etckeeper (0.49) UNRELEASED; urgency=low
itself as of version 1.7.4p4, so it is not necessary for etckeeper
to work around its behavior anymore. (sudo also allows disabling that
for those who enjoy using guns around feet.) Closes: #583899
+ * Fix file quoting problem in processing .etckeeper file in init.
-- Joey Hess <joeyh@debian.org> Sun, 25 Jul 2010 19:44:37 -0400
diff --git a/init.d/20restore-etckeeper b/init.d/20restore-etckeeper
index 5dc4425..0485e63 100755
--- a/init.d/20restore-etckeeper
+++ b/init.d/20restore-etckeeper
@@ -7,7 +7,7 @@ maybe () {
command="$1"
shift 1
- if eval [ -e "\$$#" ]; then
+ if eval [ -e "\"\$$#\"" ]; then
"$command" "$@"
fi
}