[Git][reproducible-builds/strip-nondeterminism][master] Call file(1) with the "--" argument placeholder to fix normalisation of files...

Chris Lamb gitlab at salsa.debian.org
Tue Mar 12 18:29:34 CET 2019


Chris Lamb pushed to branch master at Reproducible Builds / strip-nondeterminism


Commits:
82d9ee5d by Chris Lamb at 2019-03-12T17:28:51Z
Call file(1) with the "--" argument placeholder to fix normalisation of files starting with a hyphen. (Closes: reproducible-builds/strip-nondeterminism#6, #924407)

- - - - -


1 changed file:

- lib/File/StripNondeterminism.pm


Changes:

=====================================
lib/File/StripNondeterminism.pm
=====================================
@@ -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;



View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/commit/82d9ee5d77206127cb04c25f36f14a3e8bbd2268

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/commit/82d9ee5d77206127cb04c25f36f14a3e8bbd2268
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20190312/5afc8f41/attachment.html>


More information about the rb-commits mailing list