From 95719fbea6acf52d03b17de742f16be8f1f0ce70 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 5 Nov 2010 14:07:38 +0100 Subject: xattr: add configure check and #ifdefs setxattr is a glibc call to set extended attributes, so configure now checks for it and the code is adapted to only build when the functionality is present. --- src/main.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 5394bac2a..6998f985a 100644 --- a/src/main.c +++ b/src/main.c @@ -5648,12 +5648,10 @@ operate(struct Configurable *config, int argc, argv_item_t argv[]) } if(config->xattr && outs.filename) { - char *url = NULL; - curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &url); - int err = write_xattr( curl, outs.filename ); - if (err) { - warnf( config, "Error setting extended attributes: %s\n", strerror(errno) ); - } + int err = write_xattr(curl, outs.filename ); + if(err) + warnf( config, "Error setting extended attributes: %s\n", + strerror(errno) ); } #ifdef HAVE_UTIME -- cgit v1.2.3