mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-27 12:07:39 +00:00
Use original file type when creating device nodes
This commit is contained in:
parent
1d54c5144e
commit
8ebd9c8927
@ -311,7 +311,7 @@ static int bind_mount(const char *from, const char *to, bool log) {
|
||||
#define mount_mirror(part, flag) { \
|
||||
sscanf(line.data(), "%s %*s %s", buf, buf2); \
|
||||
xstat(buf, &st); \
|
||||
mknod(PARTBLK(part), S_IFBLK | 0600, st.st_rdev); \
|
||||
mknod(PARTBLK(part), (st.st_mode & S_IFMT) | 0600, st.st_rdev); \
|
||||
xmkdir(MIRRMNT(part), 0755); \
|
||||
xmount(PARTBLK(part), MIRRMNT(part), buf2, flag, nullptr); \
|
||||
VLOGI("mount", PARTBLK(part), MIRRMNT(part)); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user