summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-04-01 17:38:29 +0000
committerStefan Bühler <stbuehler@web.de>2016-04-01 17:38:29 +0000
commit36ab0587c0fe388694e7904b40901e34fe7d65ba (patch)
tree5cfc71e392adfb33f24b69d7d53e16bf054a6d8c /NEWS
parent47f3dbebe43491874c5fd0213512d7858f6cde7d (diff)
downloadlighttpd-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--NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 37034312..8b394859 100644
--- a/NEWS
+++ b/NEWS
@@ -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)