From 1e655e40f6dbfc877cecd04b5a567c7f5cd43f3f Mon Sep 17 00:00:00 2001 From: Roch D'Amour Date: Thu, 22 Feb 2018 13:43:46 -0500 Subject: [PATCH] Bug 11317 - File with same name in different directories now has distinct hash --- tools/access_files.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/access_files.pl b/tools/access_files.pl index 0fb57af..61b3abe 100755 --- a/tools/access_files.pl +++ b/tools/access_files.pl @@ -53,8 +53,8 @@ else { foreach my $dir(@directories){ opendir(DIR, $dir); foreach my $filename (readdir(DIR)) { - my $id = md5_hex($filename); my $full_path = "$dir/$filename"; + my $id = md5_hex($full_path); next if ($filename =~ /^\./ or -d $full_path); my $st = stat($full_path); -- 2.7.4