From: Daniel Stenberg Date: Mon, 11 Feb 2019 11:17:31 +0000 (+0100) Subject: curl: follow-up to b49652ac66cc0 X-Git-Tag: curl-7_64_1~169 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f16990ec84cc4b;p=thirdparty%2Fcurl.git curl: follow-up to b49652ac66cc0 On FreeBSD, return non-zero on error otherwise zero. Reported-by: Marcel Raad --- diff --git a/src/tool_xattr.c b/src/tool_xattr.c index be5f024a6a..7cc42e0f11 100644 --- a/src/tool_xattr.c +++ b/src/tool_xattr.c @@ -116,7 +116,7 @@ int fwrite_xattr(CURL *curl, int fd) mappings[i].attr, value, strlen(value)); /* FreeBSD's extattr_set_fd returns the length of the extended attribute */ - err = (int)rc; + err = (rc < 0 : -1 : 0); } #endif if(freeptr)