diff options
-rw-r--r-- | src/archive.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive.c b/src/archive.c index dab9f4d..e58f6d5 100644 --- a/src/archive.c +++ b/src/archive.c @@ -494,7 +494,7 @@ int apk_archive_entry_extract(int atfd, const struct apk_file_info *ae, if (r != -ENOTSUP) apk_error("Failed to set xattrs on %s: %s", 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; } |