diff options
author | Guillem Jover <guillem@debian.org> | 2016-04-19 17:23:09 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-05-02 03:35:43 +0200 |
commit | 11912fc691d60acaa84d50ea5e325248a97b0ba3 (patch) | |
tree | aa2215aecd058485b5050912708cb4a6fb6633cd | |
parent | d668f81e2b3b4d45853ed29e7b325b8e69c22622 (diff) | |
download | dpkg-11912fc691d60acaa84d50ea5e325248a97b0ba3.tar.gz |
build: Quote dirname argument
We should protect this argument in case the user has the source tree
in a pathname with spaces.
Reported-by: Carsten Hey <carsten@debian.org>
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | run-script | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index a28ba10ed..f2bab71e1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -92,6 +92,8 @@ dpkg (1.18.5) UNRELEASED; urgency=medium - Add a configuration summary to configure output. - Make git log invocation immune to local configuration. - Do not require passing the perl interpreter to run-script. + - Quote dirname argument in run-script, to handle spaces in pathname. + Reported by Carsten Hey <carsten@debian.org>. * Packaging: - Enable all hardening flags, starting with gcc-5 there is no performance loss anymore when enabling PIE on i386. diff --git a/run-script b/run-script index 3e20e39f2..b3ab8ddda 100755 --- a/run-script +++ b/run-script @@ -1,6 +1,6 @@ #!/bin/sh -top_srcdir="`dirname $0`" +top_srcdir="`dirname "$0"`" # To avoid using «readlink -f» or «realpath» we just change into the # desired directory and work from there. |