Bugzilla – Attachment 72097 Details for
Bug 11317
Add a way to access files from the intranet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11317 - File with same name in different directories now has distinct hash
Bug-11317---File-with-same-name-in-different-direc.patch (text/plain), 851 bytes, created by
Roch D'Amour
on 2018-02-22 18:51:26 UTC
(
hide
)
Description:
Bug 11317 - File with same name in different directories now has distinct hash
Filename:
MIME Type:
Creator:
Roch D'Amour
Created:
2018-02-22 18:51:26 UTC
Size:
851 bytes
patch
obsolete
>From 1e655e40f6dbfc877cecd04b5a567c7f5cd43f3f Mon Sep 17 00:00:00 2001 >From: Roch D'Amour <roch.damour@inlibro.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11317
:
23203
|
25387
|
27492
|
27579
|
27604
|
35938
|
35939
|
35940
|
36844
|
39783
|
39784
|
39785
|
39786
|
44859
|
44860
|
48629
|
48635
|
49941
|
49942
|
49943
|
49944
|
49945
|
49946
|
49947
|
50421
|
50424
|
50425
|
50440
|
53446
|
58220
|
58221
|
58222
|
58223
|
58224
|
58225
|
58226
|
62971
|
62972
|
62973
|
62974
|
62975
|
64088
|
64089
|
65691
|
65851
|
65855
|
65856
|
65857
|
65909
|
65910
|
65911
|
65912
|
65913
|
65914
|
65915
|
65918
|
66091
|
66092
|
66093
|
66094
|
66095
|
66096
|
66097
|
66098
|
66099
|
66100
|
72097
|
72309
|
72456
|
72457
|
72458
|
72459
|
72460
|
72461
|
72462
|
72463
|
72464
|
72465
|
74119
|
74379
|
74756
|
74911
|
74912
|
74916
|
74917
|
74918
|
74919
|
75019