Bug #1699
(typo?) localtime should be used instead of localtime_r
| Status: | Fixed | Start: | ||
| Priority: | Low | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | core | |||
| Target version: | 1.5.0 | |||
| Pending: | No |
Resolution: | fixed |
|
Description
I think there's a typo in both lighttpd-1.4.19 and 1.5-svn, in file src/mod_accesslog.c. The second localtime_r() call should be instead a localtime() call, because:
1/ it's in an else block of an # ifdef HAVE_LOCALTIME_R.
2/ It only has one argument.
See the attached patch.
-- chl