summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2014-09-11 19:08:30 +0200
committerRich Salz <rsalz@openssl.org>2014-09-11 19:08:30 +0200
commit6f46c3c3b007f1aed77bbb4d1657fab8521e2e08 (patch)
tree0b49412ff576f9d5c12d666a0332359b08a50071 /tools
parentRT3271 update; extra; semi-colon; confuses; some; (diff)
downloadopenssl-6f46c3c3b007f1aed77bbb4d1657fab8521e2e08.tar.xz
openssl-6f46c3c3b007f1aed77bbb4d1657fab8521e2e08.zip
RT2772 update: c_rehash was broken
Move the readdir() lines out of the if statement, so that flist is available globally. Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/c_rehash.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/c_rehash.in b/tools/c_rehash.in
index cd2cc39f27..887e927125 100644
--- a/tools/c_rehash.in
+++ b/tools/c_rehash.in
@@ -93,10 +93,10 @@ sub hash_dir {
my %hashlist;
print "Doing $_[0]\n";
chdir $_[0];
+ opendir(DIR, ".");
+ my @flist = readdir(DIR);
+ closedir DIR;
if ( $removelinks ) {
- opendir(DIR, ".");
- my @flist = readdir(DIR);
- closedir DIR;
# Delete any existing symbolic links
foreach (grep {/^[\da-f]+\.r{0,1}\d+$/} @flist) {
if(-l $_) {