mirror of
https://github.com/moparisthebest/curl
synced 2024-11-05 00:55:04 -05:00
curl: follow-up to b49652ac66
On FreeBSD, return non-zero on error otherwise zero. Reported-by: Marcel Raad
This commit is contained in:
parent
982c09b95b
commit
3f16990ec8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user