curl-library
[PATCH] Support extended attributes when built with cmake.
Date: Thu, 21 Jul 2016 15:16:43 +1000
Hi,
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
issue.
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
Current
Dload Upload Total Spent Left
Speed
100 6350 0 6350 0 0 22173 0 --:--:-- --:--:-- --:--:--
45035
$ getfattr -d robots.txt
# file: robots.txt
user.mime_type="text/plain"
user.xdg.origin.url="http://www.google.com/robots.txt"
-- Sean Burford <sburford_at_google.com>
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
- text/x-patch attachment: 0001-cmake-Support-extended-attributes-when-built-with-cm.patch