mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-14 01:23:43 +00:00
set MAGISKTMP
This commit is contained in:
@@ -222,6 +222,7 @@ void install_module(const char *file) {
|
|||||||
setenv("OUTFD", "1", 1);
|
setenv("OUTFD", "1", 1);
|
||||||
setenv("ZIPFILE", zip, 1);
|
setenv("ZIPFILE", zip, 1);
|
||||||
setenv("ASH_STANDALONE", "1", 1);
|
setenv("ASH_STANDALONE", "1", 1);
|
||||||
|
setenv("MAGISKTMP", get_magisk_tmp(), 0);
|
||||||
free(zip);
|
free(zip);
|
||||||
|
|
||||||
int fd = xopen("/dev/null", O_RDONLY);
|
int fd = xopen("/dev/null", O_RDONLY);
|
||||||
|
|||||||
Reference in New Issue
Block a user