From 4c7103a5eee1dc472e256ac8818610c6e98a9a39 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Thu, 10 Sep 2015 11:46:13 -0400 Subject: Unwriteable directories are errors Make the script and app match the documentation. Reviewed-by: Tim Hudson --- tools/c_rehash.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/c_rehash.in') diff --git a/tools/c_rehash.in b/tools/c_rehash.in index 6c2ff065d1..834de780ca 100644 --- a/tools/c_rehash.in +++ b/tools/c_rehash.in @@ -6,6 +6,7 @@ my $dir; my $prefix; +my $errorcount = 0; my $openssl = $ENV{OPENSSL} || "openssl"; my $pwd; my $x509hash = "-subject_hash"; @@ -89,9 +90,11 @@ foreach (@dirlist) { hash_dir($_); } else { print "Skipping $_, can't write\n"; + $errorcount++; } } } +exit($errorcount); sub hash_dir { my %hashlist; -- cgit v1.2.3