https://redmine.lighttpd.net/
https://redmine.lighttpd.net/favicon.ico?1366732741
2017-10-27T13:00:00Z
lighty labs
Lighttpd - Bug #2835: empty var.CWD
https://redmine.lighttpd.net/issues/2835?journal_id=11161
2017-10-27T13:00:00Z
gstrauss
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Patch Pending</i></li><li><strong>Target version</strong> changed from <i>1.4.x</i> to <i>1.4.48</i></li></ul><p>Broke in <a class="changeset" title="[core] perf: skip redundant strlen() if len known performance: skip redundant strlen() if length..." href="https://redmine.lighttpd.net/projects/lighttpd/repository/14/revisions/86bb8be2c8eb5a65ebf73f12f62833db84d2cf9c">86bb8be2c</a><br />Thanks for reporting. This fixes it:<br /><pre>
--- a/src/configfile.c
+++ b/src/configfile.c
@@ -1355,7 +1355,7 @@ int config_read(server *srv, const char *fn) {
dcwd = data_string_init();
buffer_string_prepare_copy(dcwd->value, 1023);
if (NULL != getcwd(dcwd->value->ptr, dcwd->value->size - 1)) {
- buffer_commit(dcwd->value, buffer_string_length(dcwd->value));
+ buffer_commit(dcwd->value, strlen(dcwd->value->ptr));
buffer_copy_string_len(dcwd->key, CONST_STR_LEN("var.CWD"));
array_insert_unique(dc->value, (data_unset *)dcwd);
} else {
</pre></p>
Lighttpd - Bug #2835: empty var.CWD
https://redmine.lighttpd.net/issues/2835?journal_id=11162
2017-10-27T13:03:11Z
gstrauss
<ul><li><strong>Category</strong> set to <i>core</i></li></ul>
Lighttpd - Bug #2835: empty var.CWD
https://redmine.lighttpd.net/issues/2835?journal_id=11170
2017-11-04T03:11:12Z
gstrauss
<ul><li><strong>Status</strong> changed from <i>Patch Pending</i> to <i>Fixed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[core] fix var.CWD (regression in 1.4.46) (fixes #2835) (broken in commit:86bb8be2) x-ref: "e..." href="https://redmine.lighttpd.net/projects/lighttpd/repository/14/revisions/b27f1c0910379e8be7e23818d2dbdeb650a7d743">b27f1c0910379e8be7e23818d2dbdeb650a7d743</a>.</p>