From 585a3eb8d38cbf8dd603617c9f48ba8f414d60aa Mon Sep 17 00:00:00 2001 From: Roch D'Amour Date: Thu, 22 Feb 2018 13:43:46 -0500 Subject: [PATCH] Bug 11317: (Follow-up) File with same name in different directories now has distinct hash Signed-off-by: Josef Moravec --- 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.1.4