Codebase list openssl / a2a9f88
util/mkdef.pl, util/add-depends.pl: don't lowercase file names It turns out to be detrimental on some file systems that may or may not be case sensitive (such as NTFS, which has a case sensitive mode). Fixes #7172 Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7172) (cherry picked from commit d3c72e392ab72d418ea5147857701a8730def3fd) Richard Levitte authored 5 years ago Richard Levitte committed 5 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
6262 # files we depend on in the same directory that only differ by character case,
6363 # we're fine.
6464 my %depconv_cache =
65 map { lc catfile($abs_blddir, $_) => $_ }
65 map { catfile($abs_blddir, $_) => $_ }
6666 keys %{$unified_info{generate}};
6767
6868 my %procedures = (
138138
139139 # VMS C gives us absolute paths, always. Let's see if we can
140140 # make them relative instead.
141 $line = lc canonpath($line);
141 $line = canonpath($line);
142142
143143 unless (defined $depconv_cache{$line}) {
144144 my $dep = $line;
183183 # VC gives us absolute paths for all include files, so to
184184 # remove system header dependencies, we need to check that
185185 # they don't match $abs_srcdir or $abs_blddir.
186 $tail = lc canonpath($tail);
186 $tail = canonpath($tail);
187187
188188 unless (defined $depconv_cache{$tail}) {
189189 my $dep = $tail;
246246 $crypto.=" include/internal/err.h";
247247 $crypto.=" include/internal/sslconf.h";
248248 foreach my $f ( glob(catfile($config{sourcedir},'include/openssl/*.h')) ) {
249 my $fn = "include/openssl/" . lc(basename($f));
249 my $fn = "include/openssl/" . basename($f);
250250 $crypto .= " $fn" if !defined $skipthese{$fn};
251251 }
252252