mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-07 01:21:54 +00:00
Magic Mount algorithm massive bug fix
This commit is contained in:
@@ -311,6 +311,7 @@ int cp_afc(const char *source, const char *target) {
|
||||
char buffer[PATH_MAX];
|
||||
xreadlink(source, buffer, sizeof(buffer));
|
||||
xsymlink(buffer, target);
|
||||
lchown(target, buf.st_uid, buf.st_gid);
|
||||
lgetfilecon(source, &con);
|
||||
lsetfilecon(target, con);
|
||||
free(con);
|
||||
|
||||
Reference in New Issue
Block a user