aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-11-05 14:07:38 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-11-05 14:07:38 +0100
commit95719fbea6acf52d03b17de742f16be8f1f0ce70 (patch)
tree00092046ba3080c7813dff31bd6d3155a83fe326 /src/main.c
parentfbf51696ef1435cf358943c671ac55944ccec26c (diff)
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.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 4 insertions, 6 deletions
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