mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-15 17:10:17 +00:00
Clean rootfs in switch_root
This commit is contained in:
@@ -258,6 +258,14 @@ int xfstat(int fd, struct stat *buf) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
int xdup(int fd) {
|
||||
int ret = dup(fd);
|
||||
if (ret == -1) {
|
||||
PLOGE("dup");
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
int xdup2(int oldfd, int newfd) {
|
||||
int ret = dup2(oldfd, newfd);
|
||||
if (ret == -1) {
|
||||
|
Reference in New Issue
Block a user