aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_files.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-11-29 23:15:41 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-11-29 23:15:41 +0000
commitb63da701e5b3945198a507f5c604f3c2a6c4cb8b (patch)
tree6b9929c07613d36144bbbafcc374ce46a671dc08 /src/os/unix/ngx_files.c
parentea1ff4199de7c7f697cac8c9072b4d65650b0b7b (diff)
downloadnginx-b63da701e5b3945198a507f5c604f3c2a6c4cb8b.tar.gz
nginx-b63da701e5b3945198a507f5c604f3c2a6c4cb8b.zip
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.
Diffstat (limited to 'src/os/unix/ngx_files.c')
-rw-r--r--src/os/unix/ngx_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/unix/ngx_files.c b/src/os/unix/ngx_files.c
index 4fdf884fc..c3ae47fdb 100644
--- a/src/os/unix/ngx_files.c
+++ b/src/os/unix/ngx_files.c
@@ -363,7 +363,7 @@ ngx_open_glob(ngx_glob_t *gl)
{
int n;
- n = glob((char *) gl->pattern, GLOB_NOSORT, NULL, &gl->pglob);
+ n = glob((char *) gl->pattern, 0, NULL, &gl->pglob);
if (n == 0) {
return NGX_OK;