Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_files.h @ 4488:d33ce8cd0d70
Disable symlinks: use O_SEARCH|O_DIRECTORY to open path components.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Tue, 21 Feb 2012 15:10:13 +0000 |
parents | f7d131008e9c |
children | 569ea17767bf |
comparison
equal
deleted
inserted
replaced
4487:a786c85e8268 | 4488:d33ce8cd0d70 |
---|---|
76 #define NGX_FILE_APPEND O_WRONLY|O_APPEND | 76 #define NGX_FILE_APPEND O_WRONLY|O_APPEND |
77 #define NGX_FILE_NONBLOCK O_NONBLOCK | 77 #define NGX_FILE_NONBLOCK O_NONBLOCK |
78 | 78 |
79 #if (NGX_HAVE_OPENAT) | 79 #if (NGX_HAVE_OPENAT) |
80 #define NGX_FILE_NOFOLLOW O_NOFOLLOW | 80 #define NGX_FILE_NOFOLLOW O_NOFOLLOW |
81 #endif | 81 |
82 #if defined(O_DIRECTORY) | |
83 #define NGX_FILE_DIRECTORY O_DIRECTORY | |
84 #else | |
85 #define NGX_FILE_DIRECTORY 0 | |
86 #endif | |
87 | |
88 #if defined(O_SEARCH) | |
89 #define NGX_FILE_SEARCH O_SEARCH|NGX_FILE_DIRECTORY | |
90 | |
91 #elif defined(O_EXEC) | |
92 #define NGX_FILE_SEARCH O_EXEC|NGX_FILE_DIRECTORY | |
93 | |
94 #else | |
95 #define NGX_FILE_SEARCH O_RDONLY|NGX_FILE_DIRECTORY | |
96 #endif | |
97 | |
98 #endif /* NGX_HAVE_OPENAT */ | |
82 | 99 |
83 #define NGX_FILE_DEFAULT_ACCESS 0644 | 100 #define NGX_FILE_DEFAULT_ACCESS 0644 |
84 #define NGX_FILE_OWNER_ACCESS 0600 | 101 #define NGX_FILE_OWNER_ACCESS 0600 |
85 | 102 |
86 | 103 |