diff options
author | Otavio Salvador <otavio@debian.org> | 2009-12-15 14:27:36 +0000 |
---|---|---|
committer | Otavio Salvador <otavio@debian.org> | 2009-12-15 14:27:36 +0000 |
commit | a887497569f5abcd4a3262330af62a51ba07fa9c (patch) | |
tree | 0461ca0afedda43bc8faadeb2f5d9220d9aaea19 | |
parent | f2206a911db629e833d0b1f32bf10045cf1922c3 (diff) | |
download | debootstrap-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/changelog | 2 | ||||
-rw-r--r-- | functions | 2 |
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 @@ -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" |