aboutsummaryrefslogtreecommitdiff
path: root/lib/tar/src/iterator.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tar/src/iterator.c')
-rw-r--r--lib/tar/src/iterator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tar/src/iterator.c b/lib/tar/src/iterator.c
index 93c931c..ed35b73 100644
--- a/lib/tar/src/iterator.c
+++ b/lib/tar/src/iterator.c
@@ -231,7 +231,7 @@ retry:
return 0;
fail:
- tar->state = ret < 0 ? SQFS_ERROR_IO : 1;
+ tar->state = ret < 0 ? ret : 1;
return tar->state;
}