summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2015-09-10 11:46:13 -0400
committerRich Salz <rsalz@openssl.org>2015-09-10 16:13:55 -0400
commit4c7103a5eee1dc472e256ac8818610c6e98a9a39 (patch)
tree562a76657e1d7b5bd09fb22f8332ea5fbdca9123 /tools
parente7451ed137450e4bc6c4bec33bc9054bce443feb (diff)
downloadopenssl-new-4c7103a5eee1dc472e256ac8818610c6e98a9a39.tar.gz
Unwriteable directories are errors
Make the script and app match the documentation. Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/c_rehash.in3
1 files changed, 3 insertions, 0 deletions
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;