[bsd xattr] fix compile break with BSD extended attributes in stat_cache

From: Stefan Bühler <stbuehler@web.de>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3023 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.37
Stefan Bühler 2015-08-22 23:27:17 +00:00
parent d7cd5b087a
commit 9257d7df4f
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -13,6 +13,7 @@ NEWS
* fix some unchecked return value warnings
* [kqueue] fix kevent call
* [autoconf] define HAVE_CRYPT when crypt() is present
* [bsd xattr] fix compile break with BSD extended attributes in stat_cache
- 1.4.36 - 2015-07-26
* use keep-alive timeout while waiting for HTTP headers; use always the read timeout while waiting for the HTTP body

View File

@ -230,7 +230,7 @@ static int stat_cache_attr_get(buffer *buf, char *name) {
static int stat_cache_attr_get(buffer *buf, char *name) {
ssize_t attrlen;
buffer_prepare_copy(buf, 1023);
buffer_string_prepare_copy(buf, 1023);
if (-1 != (attrlen = extattr_get_file(name, EXTATTR_NAMESPACE_USER, "Content-Type", buf->ptr, buf->size - 1))) {
buf->used = attrlen + 1;