~ubuntu-branches/ubuntu/quantal/curl/quantal

« back to all changes in this revision

Viewing changes to src/xattr.c

  • Committer: Bazaar Package Importer
  • Author(s): James Page
  • Date: 2011-10-20 09:28:24 UTC
  • mfrom: (3.4.22 sid)
  • Revision ID: james.westby@ubuntu.com-20111020092824-i7kfjd5we7dh57nv
Tags: 7.21.7-3ubuntu1
* Merge from Debian testing, remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel and libssh2-1-dev.
    + Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Add new libcurl3-udeb package, stripped down for use during 
    installation (LP: #831496).
* Dropped changes:
  - debian/patches/timeout_bug_736216: applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
 * Copyright (C) 2010, 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
9
9
 *
10
10
 * This software is licensed as described in the file COPYING, which
11
11
 * you should have received as part of this distribution. The terms
51
51
  int i = 0;
52
52
  int err = 0;
53
53
  /* loop through all xattr-curlinfo pairs and abort on a set error */
54
 
  while ( err == 0 && mappings[i].attr != NULL ) {
 
54
  while(err == 0 && mappings[i].attr != NULL) {
55
55
    char *value = NULL;
56
56
    CURLcode rc = curl_easy_getinfo(curl, mappings[i].info, &value);
57
 
    if ( rc == CURLE_OK && value ) {
 
57
    if(rc == CURLE_OK && value) {
58
58
#ifdef HAVE_FSETXATTR_6
59
59
      err = fsetxattr( fd, mappings[i].attr, value, strlen(value), 0, 0 );
60
60
#elif defined(HAVE_FSETXATTR_5)