Mercurial > hg > nginx-quic
comparison src/misc/ngx_cpp_test_module.cpp @ 4487:a786c85e8268
Disable symlinks: don't allow creating or truncating a file via a symlink in
the last path component if "if_not_owner" parameter is used.
To prevent race condition we have to open a file before checking its owner and
there's no way to change access flags for already opened file descriptor, so
we disable symlinks for the last path component at all if flags allow creating
or truncating the file.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Tue, 21 Feb 2012 15:04:41 +0000 |
parents | 69ef10ad7011 |
children | 4c36e15651f7 |
comparison
equal
deleted
inserted
replaced
4486:a996bb40a0bb | 4487:a786c85e8268 |
---|