mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-27 11:17:38 +00:00
Fix bugs in compression
This commit is contained in:
parent
2d7f130d2c
commit
75939047d1
@ -109,7 +109,7 @@ void compress(const char *method, const char *infile, const char *outfile) {
|
|||||||
rm_in = true;
|
rm_in = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
out_fd = strcmp(infile, "-") == 0 ? STDOUT_FILENO : creat(infile, 0644);
|
out_fd = strcmp(outfile, "-") == 0 ? STDOUT_FILENO : creat(outfile, 0644);
|
||||||
}
|
}
|
||||||
|
|
||||||
cmp->set_out(make_unique<FDOutStream>(out_fd));
|
cmp->set_out(make_unique<FDOutStream>(out_fd));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user