[openssl-commits] [openssl] master update
Richard Levitte
levitte at openssl.org
Tue Feb 2 19:07:48 UTC 2016
The branch master has been updated
via 85152ca4a1e9827d48dc9cbe266da3f90f3d158a (commit)
from 01a35a5da7b91718c70c0c6cccfd7531c7010d5d (commit)
- Log -----------------------------------------------------------------
commit 85152ca4a1e9827d48dc9cbe266da3f90f3d158a
Author: Richard Levitte <levitte at openssl.org>
Date: Tue Feb 2 19:47:05 2016 +0100
Use a simpler method to build a glob than splitpath and catpath
It turns out that the combination splitpath() could return an empty
string for the directory part. This doesn't play well with catdir().
Reviewed-by: Rich Salz <rsalz at openssl.org>
-----------------------------------------------------------------------
Summary of changes:
Configure | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Configure b/Configure
index 06eca50..44cb40b 100755
--- a/Configure
+++ b/Configure
@@ -10,7 +10,7 @@
require 5.000;
use strict;
use File::Basename;
-use File::Spec::Functions qw/:DEFAULT abs2rel rel2abs catpath splitpath/;
+use File::Spec::Functions qw/:DEFAULT abs2rel rel2abs/;
use File::Path qw/make_path/;
use Cwd qw/:DEFAULT realpath/;
@@ -175,8 +175,7 @@ die "erroneous version information in opensslv.h: ",
# Collect target configurations
-my ($vol, $dir, $dummy) = splitpath($0);
-my $pattern = catpath($vol, catdir($dir, "Configurations"), "*.conf");
+my $pattern = catfile(dirname($0), "Configurations", "*.conf");
foreach (sort glob($pattern) ) {
&read_config($_);
}
More information about the openssl-commits
mailing list