fix issue introduced in previous xattr error handling changes

cute-signatures
Timo Teräs 2015-04-17 10:34:49 +03:00
parent 820098d6ad
commit 1a5d6d06d6
1 changed files with 2 additions and 2 deletions

View File

@ -494,7 +494,7 @@ int apk_archive_entry_extract(int atfd, const struct apk_file_info *ae,
if (r != -ENOTSUP) if (r != -ENOTSUP)
apk_error("Failed to set xattrs on %s: %s", apk_error("Failed to set xattrs on %s: %s",
fn, strerror(-r)); fn, strerror(-r));
if (!ret) ret = -errno; if (!ret) ret = r;
} }
} }
@ -512,5 +512,5 @@ int apk_archive_entry_extract(int atfd, const struct apk_file_info *ae,
} }
} }
return 0; return ret;
} }