summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog8
-rwxr-xr-xetckeeper3
2 files changed, 11 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index f5ee8df..f044ead 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+etckeeper (0.47) UNRELEASED; urgency=low
+
+ * Set HOME=~root so that VCS like bzr that write to the home
+ directory when run by etckeeper do not drop root-owned files
+ in user home directory when sudo etckeeper is run. Closes: #583581
+
+ -- Joey Hess <joeyh@debian.org> Fri, 28 May 2010 13:33:44 -0400
+
etckeeper (0.46) unstable; urgency=low
* Support etckeeper commit --stdin
diff --git a/etckeeper b/etckeeper
index 1b6c76c..4c27005 100755
--- a/etckeeper
+++ b/etckeeper
@@ -22,6 +22,9 @@ if [ -z "$VCS" ]; then
fi
export VCS
+HOME=~root
+export HOME
+
if [ ! -z "$GIT_COMMIT_OPTIONS" ]; then
export GIT_COMMIT_OPTIONS
fi