From: Jean Delvare Date: Sat, 24 Jan 2015 21:32:04 +0100 Subject: setup: Fix link creation Upstream: Committed (c55c1993ffee5d137ff40fcab0f59520ddcb00bf) Fix funtion create_symlink. If the link has an absolute path then its target should be set to an absolute path as well. This fixes the use of "quilt setup" with an absolute -d path and a relative --sourcedir path. diff --git a/quilt/setup.in b/quilt/setup.in index 7f69f35..ddb1f00 100644 --- a/quilt/setup.in +++ b/quilt/setup.in @@ -86,6 +86,7 @@ create_symlink() local target=$1 link=$2 up if [ "${target:0:1}" = / -o "${link:0:1}" = / ] then + [ "${target:0:1}" = / ] || target=$PWD/$target ln -s "$target" "$link" return fi