]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
configure: Do not put arguments into double quotes
authorAndreas Schneider <asn@samba.org>
Mon, 2 Aug 2021 15:43:01 +0000 (17:43 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 3 Aug 2021 18:36:37 +0000 (18:36 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14777

This could create an issue that arguments don't get split by python and then the
following could happen:

    ./configure --libdir=/usr/lib64 --enable-clangdb

    LIBDIR='/usr/lib64 --enable-clangdb'

This ends then up in parameters.all.xml:

    <!ENTITY pathconfig.LIBDIR   '/usr/lib64 --enable-clangdb'>

The python parser then errors out:

    xml.etree.ElementTree.ParseError: not well-formed (invalid token)

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Aug  3 18:36:37 UTC 2021 on sn-devel-184

configure

index a6ca50feb4702929fa499d516977fce235fa0789..2b0ffb0dae1cc6ea05345e6ba53cd5366faa4e9b 100755 (executable)
--- a/configure
+++ b/configure
@@ -13,5 +13,5 @@ export JOBS
 unset LD_PRELOAD
 
 cd . || exit 1
-$PYTHON $WAF configure "$@" || exit 1
+$PYTHON $WAF configure $@ || exit 1
 cd $PREVPATH