1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 00:55:08 +00:00

Convert some FS methods to return RetainPtr<Inode>.

This commit is contained in:
Andreas Kling 2018-12-24 23:44:46 +01:00
parent 1e07ead119
commit 673870563d
6 changed files with 25 additions and 25 deletions

View file

@ -306,7 +306,7 @@ bool VFS::mkdir(const String& path, mode_t mode, InodeIdentifier base, int& erro
}
dbgprintf("VFS::mkdir: '%s' in %u:%u\n", p.basename().characters(), parent_dir.fsid(), parent_dir.index());
auto new_dir = base.fs()->create_directory(parent_dir, p.basename(), mode, error);
if (new_dir.is_valid()) {
if (new_dir) {
error = 0;
return true;
}