mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-20 08:31:21 -08:00
Remove seek support from streams
This commit is contained in:
@@ -196,7 +196,7 @@ static void extract_files(bool sbin) {
|
||||
mmap_data magisk(m32);
|
||||
unlink(m32);
|
||||
int fd = xopen("magisk32", O_WRONLY | O_CREAT, 0755);
|
||||
fd_channel ch(fd);
|
||||
fd_stream ch(fd);
|
||||
unxz(ch, magisk);
|
||||
close(fd);
|
||||
}
|
||||
@@ -204,7 +204,7 @@ static void extract_files(bool sbin) {
|
||||
mmap_data magisk(m64);
|
||||
unlink(m64);
|
||||
int fd = xopen("magisk64", O_WRONLY | O_CREAT, 0755);
|
||||
fd_channel ch(fd);
|
||||
fd_stream ch(fd);
|
||||
unxz(ch, magisk);
|
||||
close(fd);
|
||||
xsymlink("./magisk64", "magisk");
|
||||
@@ -215,7 +215,7 @@ static void extract_files(bool sbin) {
|
||||
mmap_data stub(stub_xz);
|
||||
unlink(stub_xz);
|
||||
int fd = xopen("stub.apk", O_WRONLY | O_CREAT, 0);
|
||||
fd_channel ch(fd);
|
||||
fd_stream ch(fd);
|
||||
unxz(ch, stub);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user