]> git.kaiwu.me - nginx.git/commit
Disable symlinks: added explicit cast of AT_FDCWD (ticket #111).
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 20 Feb 2012 19:14:35 +0000 (19:14 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 20 Feb 2012 19:14:35 +0000 (19:14 +0000)
commit7ba66f42a0cb15ff3cd6a93d6927f68fb8363a13
tree40312db1a44609ba597666150553ed613ee57633
parent6bb86e3d5852e0d879c2e1f18dc1627172050606
Disable symlinks: added explicit cast of AT_FDCWD (ticket #111).

Solaris has AT_FDCWD defined to unsigned value, and comparison of a file
descriptor with it causes warnings in modern versions of gcc.  Explicitly
cast AT_FDCWD to ngx_fd_t to resolve these warnings.
src/core/ngx_open_file_cache.c
src/os/unix/ngx_files.h