This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=9a55202f13a437c9b89a35fa60efb06d3c07c1d3 commit 9a55202f13a437c9b89a35fa60efb06d3c07c1d3 Author: Guillem Jover <[email protected]> AuthorDate: Sat Jun 27 02:14:01 2020 +0200 dpkg-realpath: Properly handle relative pathnames If the pathname is relative prefix the current working directory, and then strip from it any root directory specified. --- scripts/dpkg-realpath.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/dpkg-realpath.sh b/scripts/dpkg-realpath.sh index 81af7b825..75b451ad8 100755 --- a/scripts/dpkg-realpath.sh +++ b/scripts/dpkg-realpath.sh @@ -55,6 +55,12 @@ canonicalize() { local result="$root" local dst + # Check whether the path is relative and make it absolute otherwise. + if [ "$src" = "${src#/}" ]; then + src="$(pwd)/$src" + src="${src#"$root"}" + fi + # Remove prefixed slashes. while [ "$src" != "${src#/}" ]; do src=${src#/} -- Dpkg.Org's dpkg

