[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 7 years ago
parent d7cd5b087a
commit 9257d7df4f
  1. 1
      NEWS
  2. 2
      src/stat_cache.c

@ -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

@ -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;

Loading…
Cancel
Save