]> git.ipfire.org Git - thirdparty/curl.git/commit
secureserver.pl: fix stunnel path quoting
authorJay Satiro <raysatiro@yahoo.com>
Wed, 23 Aug 2023 07:37:43 +0000 (03:37 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 28 Aug 2023 19:01:50 +0000 (15:01 -0400)
commitf2bc51a0bdac97c9eb6ac6cecee0d8682fd9a45e
tree0a03932fad8c68b344e1714d728a6822433c2885
parent25ca79df1ee35a5866fb13f8bdd601d44c907bfc
secureserver.pl: fix stunnel path quoting

- Store the stunnel path in the private variable $stunnel unquoted and
  instead quote it in the command strings.

Prior to this change the quoted stunnel path was passed to perl's file
operators which cannot handle quoted paths. For example:

$stunnel = "\"/C/Program Files (x86)/stunnel/bin/tstunnel\"";
if(-x $stunnel or -x "$stunnel")
# false even if path exists and is executable

Our other test scripts written in perl, unlike this one, use servers.pm
which has a global $stunnel variable with the path stored unquoted and
therefore those scripts don't have this problem.

Closes https://github.com/curl/curl/pull/11721
tests/secureserver.pl