mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-14 01:53:16 +00:00
Migrate prepare_modules to Rust
This commit is contained in:
@@ -227,7 +227,7 @@ impl Utf8CStr {
|
||||
pub fn remove_all(&self) -> OsResultStatic<()> {
|
||||
let attr = self.get_attr()?;
|
||||
if attr.is_dir() {
|
||||
let mut dir = Directory::try_from(open_fd(self, O_RDONLY | O_CLOEXEC, 0)?)?;
|
||||
let dir = Directory::try_from(open_fd(self, O_RDONLY | O_CLOEXEC, 0)?)?;
|
||||
dir.remove_all()?;
|
||||
}
|
||||
Ok(self.remove()?)
|
||||
|
||||
Reference in New Issue
Block a user