Unverified Commit 3f16990e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

curl: follow-up to b49652ac

On FreeBSD, return non-zero on error otherwise zero.

Reported-by: Marcel Raad
parent 982c09b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)