Package: etckeeper Severity: low Version: 0.37 Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu ubuntu-patch karmic
etckeeper fails to commit if "hostname -f" fails (because of a misconfigured hostname). I tend to think that the user should fix his hostname in that corner case, but nevertheless added support for working around that in 0.37ubuntu1. https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/377265 See attached patch for proposed implementation. Basically it uses "hostname" if "hostname -f" fails to avoid any commit failure. Hope this helps, -- Thierry Carrez
diff -Nru etckeeper-0.37/commit.d/50vcs-commit etckeeper-0.37ubuntu1/commit.d/50vcs-commit --- etckeeper-0.37/commit.d/50vcs-commit 2009-02-05 03:40:27.000000000 +0100 +++ etckeeper-0.37ubuntu1/commit.d/50vcs-commit 2009-06-16 10:53:36.000000000 +0200 @@ -2,7 +2,7 @@ set -e message="$1" -hostname=`hostname -f` +hostname=`hostname -f 2>/dev/null || hostname` if [ "$VCS" = git ] && [ -d .git ]; then if [ -n "$SUDO_USER" ]; then