Skip to content
Commits on Source (4)
strip-nondeterminism (1.1.2-1) unstable; urgency=medium
* Call file(1) with the "--" argument placeholder to fix normalisation of
files starting with a hyphen.
(Closes: reproducible-builds/strip-nondeterminism#6, #924407)
-- Chris Lamb <lamby@debian.org> Tue, 12 Mar 2019 17:47:40 +0000
strip-nondeterminism (1.1.1-1) unstable; urgency=medium
* dh_strip_nondeterminism: Deduplicate hardlinks via stat(2) to avoid issues
......
......@@ -25,7 +25,7 @@ use POSIX qw(tzset);
our($VERSION, $canonical_time, $clamp_time);
$VERSION = '1.1.1'; # <https://semver.org/>
$VERSION = '1.1.2'; # <https://semver.org/>
sub init() {
$ENV{'TZ'} = 'UTC';
......@@ -35,7 +35,7 @@ sub init() {
sub _get_file_type($) {
my $file=shift;
open(FILE, '-|') # handle all filenames safely
|| exec('file', $file)
|| exec('file', '--', $file)
|| die "can't exec file: $!";
my $type=<FILE>;
close FILE;
......