android-simg2img icon indicating copy to clipboard operation
android-simg2img copied to clipboard

simg2img has seeking error with input stdin

Open LinhDNguyen opened this issue 2 years ago • 0 comments

Tried to create image from stdin sparse image, but got this error. Source code at master branch commit 2807b363d42adc18e886fcc45a4c728a97d01a30

# cat image.img | simg2img - test.ext4 
Unknown error -29 at seeking
Failed to read sparse file

From the code, it looks like the input must be able to seek, but stdin doesn't. If it doesn't support stdin, just remove this capable in main()?

LinhDNguyen avatar Nov 08 '22 08:11 LinhDNguyen