Commit 6f46c3c3 authored by Rich Salz's avatar Rich Salz
Browse files

RT2772 update: c_rehash was broken



Move the readdir() lines out of the if statement, so
that flist is available globally.

Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
parent cb4bb56b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -93,10 +93,10 @@ sub hash_dir {
	my %hashlist;
	print "Doing $_[0]\n";
	chdir $_[0];
	if ( $removelinks ) {
	opendir(DIR, ".");
	my @flist = readdir(DIR);
	closedir DIR;
	if ( $removelinks ) {
		# Delete any existing symbolic links
		foreach (grep {/^[\da-f]+\.r{0,1}\d+$/} @flist) {
			if(-l $_) {