pgsql: Fix perl searchpath for modern perl for MSVC tools

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix perl searchpath for modern perl for MSVC tools
Date: 2018-10-28 19:31:04
Message-ID: E1gGqm8-0004NS-H4@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix perl searchpath for modern perl for MSVC tools

Modern versions of perl no longer include the current directory in the
perl searchpath, as it's insecure. Instead of adding the current
directory, we get around the problem by adding the directory where the
script lives.

Problem noted by Victor Wagner.

Solution adapted from buildfarm client code.

Backpatch to all live versions.

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9fd6d4eae3009658d0d941262f7dec5ca9b877c1

Modified Files
--------------
src/tools/msvc/install.pl | 4 ++++
src/tools/msvc/mkvcbuild.pl | 4 ++++
src/tools/msvc/vcregress.pl | 2 ++
3 files changed, 10 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2018-10-29 00:02:03 pgsql: Remove incorrect comment in dshash.c.
Previous Message Michael Paquier 2018-10-26 14:37:19 pgsql: Add tab completion of EXECUTE FUNCTION for CREATE TRIGGER in psq