GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Unverified Commit 4f877159 authored by boklm's avatar boklm
Browse files

tbb_binfiles: return Windows executables too

parent d553299d
......@@ -376,11 +376,14 @@ sub tbb_binfiles {
$tbbinfos->{ffbin} => 1,
"$tbbinfos->{tordir}/tor" => 1,
);
my %wanted_types = (
'application/x-executable-file' => 1,
'application/x-ms-dos-executable' => 1,
);
my $wanted = sub {
return unless -f $File::Find::name;
return unless -x $File::Find::name;
my $type = File::Type->new->checktype_filename($File::Find::name);
return unless $type eq 'application/x-executable-file';
return unless $wanted_types{$type};
$binfiles{$File::Find::name} = 1;
};
find($wanted, $tbbinfos->{tbbdir});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment