comparison src/os/win32/ngx_files.c @ 3200:26784c34e8be

*) reset cached dirent.d_type after stat() this fixes slash after link to a directory in ngx_http_autoindex_module; *) use cached dirent.d_type as hint on all systems the issues has been introduced in r2235
author Igor Sysoev <igor@sysoev.ru>
date Wed, 14 Oct 2009 11:33:35 +0000
parents 975f0558aab3
children 6be1f25bae90
comparison
equal deleted inserted replaced
3199:b242aaf1dcfa 3200:26784c34e8be
320 if (dir->dir == INVALID_HANDLE_VALUE) { 320 if (dir->dir == INVALID_HANDLE_VALUE) {
321 return NGX_ERROR; 321 return NGX_ERROR;
322 } 322 }
323 323
324 dir->valid_info = 1; 324 dir->valid_info = 1;
325 dir->valid_type = 1;
326 dir->ready = 1; 325 dir->ready = 1;
327 326
328 return NGX_OK; 327 return NGX_OK;
329 } 328 }
330 329
336 dir->ready = 0; 335 dir->ready = 0;
337 return NGX_OK; 336 return NGX_OK;
338 } 337 }
339 338
340 if (FindNextFile(dir->dir, &dir->finddata) != 0) { 339 if (FindNextFile(dir->dir, &dir->finddata) != 0) {
340 dir->type = 1;
341 return NGX_OK; 341 return NGX_OK;
342 } 342 }
343 343
344 return NGX_ERROR; 344 return NGX_ERROR;
345 } 345 }