mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-18 08:22:47 +00:00
Fix meizu compatibility
This commit is contained in:
@@ -423,7 +423,7 @@ void restore_folder(const char *dir, vector<raw_file> &files) {
|
||||
mkdirs(path.data(), 0);
|
||||
} else if (S_ISREG(file.attr.st.st_mode)) {
|
||||
auto fp = xopen_file(path.data(), "we");
|
||||
fwrite(file.buf, 1, file.sz, fp.get());
|
||||
if (fp) fwrite(file.buf, 1, file.sz, fp.get());
|
||||
} else if (S_ISLNK(file.attr.st.st_mode)) {
|
||||
symlink((char *)file.buf, path.data());
|
||||
}
|
||||
|
Reference in New Issue
Block a user