Commit 1a5d6d06 authored by Timo Teräs's avatar Timo Teräs

fix issue introduced in previous xattr error handling changes

parent 820098d6
...@@ -494,7 +494,7 @@ int apk_archive_entry_extract(int atfd, const struct apk_file_info *ae, ...@@ -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, ...@@ -512,5 +512,5 @@ int apk_archive_entry_extract(int atfd, const struct apk_file_info *ae,
} }
} }
return 0; return ret;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment