Mercurial > hg > nginx
comparison src/os/unix/ngx_files.c @ 4943:1e2d5d3f9f6b
Core: removed GLOB_NOSORT glob option.
This will result in alphabetical sorting of included files if
the "include" directive with wildcards is used.
Note that the behaviour is now different from that on Windows, where
alphabetical sorting is not guaranteed for FindFirsFile()/FindNextFile()
(used to be alphabetical on NTFS, but not on FAT).
Approved by Igor Sysoev, prodded by many.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 29 Nov 2012 23:15:41 +0000 |
parents | 64ffc28850bb |
children | 1fdba317ee6d |
comparison
equal
deleted
inserted
replaced
4942:f9d7efb355dd | 4943:1e2d5d3f9f6b |
---|---|
361 ngx_int_t | 361 ngx_int_t |
362 ngx_open_glob(ngx_glob_t *gl) | 362 ngx_open_glob(ngx_glob_t *gl) |
363 { | 363 { |
364 int n; | 364 int n; |
365 | 365 |
366 n = glob((char *) gl->pattern, GLOB_NOSORT, NULL, &gl->pglob); | 366 n = glob((char *) gl->pattern, 0, NULL, &gl->pglob); |
367 | 367 |
368 if (n == 0) { | 368 if (n == 0) { |
369 return NGX_OK; | 369 return NGX_OK; |
370 } | 370 } |
371 | 371 |