@@ -742,12 +742,12 @@ AP_DECLARE(char *) ap_make_full_path(apr_pool_t *a, const char *src1,
742
742
return path ;
743
743
}
744
744
745
- static int fname_alphasort (const void * fn1 , const void * fn2 )
745
+ static int fname_reversealphasort (const void * fn1 , const void * fn2 )
746
746
{
747
747
const fnames * f1 = fn1 ;
748
748
const fnames * f2 = fn2 ;
749
749
750
- return strcmp (f1 -> fname ,f2 -> fname );
750
+ return strcmp (f2 -> fname ,f1 -> fname );
751
751
}
752
752
753
753
int fnmatch_test (const char * pattern )
@@ -840,7 +840,7 @@ static const char *process_resource_config_nofnmatch(const char *fname,
840
840
apr_dir_close (dirp );
841
841
if (candidates -> nelts != 0 ) {
842
842
qsort ((void * ) candidates -> elts , candidates -> nelts ,
843
- sizeof (fnames ), fname_alphasort );
843
+ sizeof (fnames ), fname_reversealphasort );
844
844
845
845
/*
846
846
* Now recurse these... we handle errors and subdirectories
@@ -941,7 +941,7 @@ static const char *process_resource_config_fnmatch(const char *path,
941
941
const char * error ;
942
942
943
943
qsort ((void * ) candidates -> elts , candidates -> nelts ,
944
- sizeof (fnames ), fname_alphasort );
944
+ sizeof (fnames ), fname_reversealphasort );
945
945
946
946
/*
947
947
* Now recurse these... we handle errors and subdirectories
@@ -1201,3 +1201,4 @@ const char *process_command_config(server_rec *s,
1201
1201
1202
1202
return errmsg ;
1203
1203
}
1204
+
0 commit comments