X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fblhc;h=c84c9d29a3f2420ad081ebe3d34242491836d5fa;hb=b0ddb66b90fc843f0be02d100721eafeee105235;hp=b5dfa6822e55fec0858cd7ed4006dbbf6549143e;hpb=2a259b08620582db1693281cded2deb29708e16b;p=blhc%2Fblhc.git diff --git a/bin/blhc b/bin/blhc index b5dfa68..c84c9d2 100755 --- a/bin/blhc +++ b/bin/blhc @@ -601,6 +601,8 @@ FILE: foreach my $file (@ARGV) { print "checking '$file'...\n" if scalar @ARGV > 1; + -f $file or die "No such file: $file"; + open my $fh, '<', $file or die $!; # Architecture of this file. @@ -1109,6 +1111,9 @@ It's designed to check build logs generated by Debian's dpkg-buildpackage (or tools using dpkg-buildpackage like pbuilder or the official buildd build logs) to help maintainers detect missing hardening flags in their packages. +Only gcc is detected as compiler at the moment. If other compilers support +hardening flags as well, please report them. + If there's no output, no flags are missing and the build log is fine. =head1 OPTIONS