diff options
author | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2016-04-01 17:38:29 +0000 |
---|---|---|
committer | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2016-04-01 17:38:29 +0000 |
commit | 988077a679f78883965f5a5c014d2c4d5e28f304 (patch) | |
tree | 5cfc71e392adfb33f24b69d7d53e16bf054a6d8c /src/settings.h | |
parent | 35da123a91e383258b68bb4caf28cfe724a67aee (diff) | |
download | lighttpd-988077a679f78883965f5a5c014d2c4d5e28f304.tar.gz |
[stream] fstat() after open() to obtain file size
Common case is on non-empty files, and doing fstat() after open()
eliminates ToC-ToU between stat() and then open(). While file size
of the target file might still change, the fstat() is on the opened
file, and can not be on different file (which was possible with stat())
From: Glenn Strauss <gstrauss@gluelogic.com>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3137 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/settings.h')
0 files changed, 0 insertions, 0 deletions