Commit a7435dad authored by osm0sis's avatar osm0sis Committed by John Wu

magiskboot: fix lzop detection

parent 793f0b60
...@@ -563,11 +563,11 @@ void decompress(char *infile, const char *outfile) { ...@@ -563,11 +563,11 @@ void decompress(char *infile, const char *outfile) {
if (!strm) { if (!strm) {
format_t type = check_fmt(buf, len); format_t type = check_fmt(buf, len);
fprintf(stderr, "Detected format: [%s]\n", fmt2name[type]);
if (!COMPRESSED(type)) if (!COMPRESSED(type))
LOGE("Input file is not a supported compressed type!\n"); LOGE("Input file is not a supported compressed type!\n");
fprintf(stderr, "Detected format: [%s]\n", fmt2name[type]);
/* If user does not provide outfile, infile has to be either /* If user does not provide outfile, infile has to be either
* <path>.[ext], or '-'. Outfile will be either <path> or '-'. * <path>.[ext], or '-'. Outfile will be either <path> or '-'.
* If the input does not have proper format, abort */ * If the input does not have proper format, abort */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment