summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@debian.org>2009-12-15 14:27:36 +0000
committerOtavio Salvador <otavio@debian.org>2009-12-15 14:27:36 +0000
commita887497569f5abcd4a3262330af62a51ba07fa9c (patch)
tree0461ca0afedda43bc8faadeb2f5d9220d9aaea19
parentf2206a911db629e833d0b1f32bf10045cf1922c3 (diff)
downloaddebootstrap-a887497569f5abcd4a3262330af62a51ba07fa9c.tar.gz
Apply patch from Vagrant Cascadian <vagrant+bugs@freegeek.org> not fail if resolv.conf is a broken symlink (closes: #390647).
r61715
-rw-r--r--debian/changelog2
-rw-r--r--functions2
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 16a6b27..46a568c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ debootstrap (1.0.21) UNRELEASED; urgency=low
[ Otavio Salvador ]
* Document new --extractor option in manpage.
+ * Apply patch from Vagrant Cascadian <vagrant+bugs@freegeek.org> not
+ fail if resolv.conf is a broken symlink (closes: #390647).
-- Otavio Salvador <otavio@debian.org> Mon, 16 Nov 2009 15:20:09 -0200
diff --git a/functions b/functions
index 33b5a46..0ba5ae7 100644
--- a/functions
+++ b/functions
@@ -836,7 +836,7 @@ in_target () {
conditional_cp () {
if [ ! -e "$2/$1" ]; then
- if [ -L "$1" ]; then
+ if [ -L "$1" ] && [ -e "$1" ]; then
cat "$1" >"$2/$1"
elif [ -e "$1" ]; then
cp -a "$1" "$2/$1"