Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b9c227

Browse files
committed
Handle spaces in OpenSSL install location for MSVC
First, make sure that the .exe name is quoted when trying to get theversion number. Also, don't quote the lib name for using in the projectfiles if it's already been quoted. This second change applies to alllibraries, not just OpenSSL.This has clearly been broken forever, so backpatch to all live branches.
1 parentb8ddf0b commit3b9c227

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎src/tools/msvc/Project.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ sub AddLibrary
132132
{
133133
my ($self,$lib,$dbgsuffix) =@_;
134134

135-
if ($lib =~m/\s/)
135+
# quote lib name if it has spaces and isn't already quoted
136+
if ($lib =~m/\s/ &&$lib !~m/^[&]quot;/)
136137
{
137138
$lib ='"' .$lib .""";
138139
}

‎src/tools/msvc/Solution.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ sub GetOpenSSLVersion
129129

130130
# Attempt to get OpenSSL version and location. This assumes that
131131
# openssl.exe is in the specified directory.
132+
# Quote the .exe name in case it has spaces
132133
my$opensslcmd =
133-
$self->{options}->{openssl} ."\\bin\\openssl.exe version 2>&1";
134+
qq("$self->{options}->{openssl}\\bin\\openssl.exe" version 2>&1);
134135
my$sslout =`$opensslcmd`;
135136

136137
$? >> 8 == 0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp