summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-05-25 08:59:10 -0400
committerRich Salz <rsalz@openssl.org>2016-06-02 15:12:50 -0400
commitb1ffe8dbeef2e233707a78847494769cbe305821 (patch)
tree7deb4305b9c8e2c00992e28ffe218bfb74671016 /tools
parent6616429d4cdeb946fe8eb0fe6823d5b3b7793ef5 (diff)
downloadopenssl-new-b1ffe8dbeef2e233707a78847494769cbe305821.tar.gz
GH1123: sort dir before rehash
This is needed to generate stable output names/symlinks. Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/c_rehash.in2
1 files changed, 1 insertions, 1 deletions
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