MICROTAR: Patch microtar to allow reading from files we are writing to.
This commit is contained in:
Vendored
+1
-1
@@ -187,7 +187,7 @@ int mtar_open(mtar_t *tar, const char *filename, const char *mode) {
|
||||
|
||||
/* Assure mode is always binary */
|
||||
if ( strchr(mode, 'r') ) mode = "rb";
|
||||
if ( strchr(mode, 'w') ) mode = "wb";
|
||||
if ( strchr(mode, 'w') ) mode = "w+b";
|
||||
if ( strchr(mode, 'a') ) mode = "ab";
|
||||
/* Open file */
|
||||
tar->stream = fopen(filename, mode);
|
||||
|
||||
Reference in New Issue
Block a user