[PATCH] Support extended attributes when built with cmake.
Date: Thu, 21 Jul 2016 15:16:43 +1000
Extended attribute support (--xattr) was omitted when curl was built with
cmake since cmake does not test for and set the HAVE_FSETXATTR defines.
I've attached a patch that addresses this issue.
The configure.ac, configure, make build system is not affected by this
I realize that cmake is the poorly maintained build option for curl,
however it is an option so it's worth fixing known issues.
$ ./src/curl --xattr -O http://www.google.com/robots.txt
% Total % Received % Xferd Average Speed Time Time Time
Dload Upload Total Spent Left
100 6350 0 6350 0 0 22173 0 --:--:-- --:--:-- --:--:--
$ getfattr -d robots.txt
# file: robots.txt
-- Sean Burford <sburford_at_google.com>
- text/x-patch attachment: 0001-cmake-Support-extended-attributes-when-built-with-cm.patch