diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2016-04-01 17:38:29 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2016-04-01 17:38:29 +0000 |
commit | 36ab0587c0fe388694e7904b40901e34fe7d65ba (patch) | |
tree | 5cfc71e392adfb33f24b69d7d53e16bf054a6d8c /NEWS | |
parent | 47f3dbebe43491874c5fd0213512d7858f6cde7d (diff) | |
download | lighttpd-git-36ab0587c0fe388694e7904b40901e34fe7d65ba.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 'NEWS')
-rw-r--r-- | NEWS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -60,6 +60,7 @@ NEWS * [mod_status] use snprintf() instead of sprintf() * pass buf size to li_tohex() * use li_[iu]tostrn() instead of li_[iu]tostr() + * [stream] fstat() after open() to obtain file size - 1.4.39 - 2016-01-02 * [core] fix memset_s call (fixes #2698) |