summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-09-13 13:10:41 -0400
committerJoey Hess <joey@kitenet.net>2010-09-13 13:10:41 -0400
commit2d0ed93eb86b6dc2db9935fb81d3ea58530cc4ca (patch)
treeab01573595b8e3b9a32e6cf64a80f0f1d8f57e82
parent577f128e85e886c66fe25ae5edf71bd47d9cdfd7 (diff)
Fix file quoting problem in processing .etckeeper file in init.
-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
}