From b1ffe8dbeef2e233707a78847494769cbe305821 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Wed, 25 May 2016 08:59:10 -0400 Subject: GH1123: sort dir before rehash This is needed to generate stable output names/symlinks. Reviewed-by: Richard Levitte --- tools/c_rehash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/c_rehash.in b/tools/c_rehash.in index a23a8f3f22..949e44f075 100644 --- a/tools/c_rehash.in +++ b/tools/c_rehash.in @@ -109,7 +109,7 @@ sub hash_dir { print "Doing $_[0]\n"; chdir $_[0]; opendir(DIR, "."); - my @flist = readdir(DIR); + my @flist = sort readdir(DIR); closedir DIR; if ( $removelinks ) { # Delete any existing symbolic links -- cgit v1.2.3