diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-11-23 22:50:38 +0300 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-11-25 23:29:08 +0300 |
commit | ea6ba61a209d8568a4acc19077e598b9c390332b (patch) | |
tree | 318d82b3a1df63a2dcd083d79e15740da2a98774 | |
parent | 6252ed2174b6c5e4c985af0e1b03ac76a52115c0 (diff) |
Allow reading from archives that are opened for writing
This operation makes sense now that you can seek backward
when writing a new archive member.
-rw-r--r-- | src/microtar.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/microtar.c b/src/microtar.c index 21389cd..ca01d9e 100644 --- a/src/microtar.c +++ b/src/microtar.c @@ -418,8 +418,6 @@ int mtar_find(mtar_t* tar, const char* name) int mtar_read_data(mtar_t* tar, void* ptr, unsigned size) { #ifndef MICROTAR_DISABLE_API_CHECKS - if(tar->access != MTAR_READ) - return MTAR_EACCESS; if(!(tar->state & S_HEADER_VALID)) return MTAR_EAPI; #endif |