libarchive: fix xmalloc_open_zipped_read_close() on NOMMU
The somewhat new "unpack in memory" code was broken for xmalloc_open_zipped_read_close() on NOMMU: we seek back over signature, but then expect it to be already consumed. Stop seeking back in this case. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		| @@ -121,7 +121,7 @@ int FAST_FUNC bbunpack(char **argv, | ||||
|  | ||||
| 		if (!(option_mask32 & SEAMLESS_MAGIC)) { | ||||
| 			init_transformer_state(&xstate); | ||||
| 			xstate.check_signature = 1; | ||||
| 			xstate.signature_skipped = 0; | ||||
| 			/*xstate.src_fd = STDIN_FILENO; - already is */ | ||||
| 			xstate.dst_fd = STDOUT_FILENO; | ||||
| 			status = unpacker(&xstate); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user