mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 15:45:07 +00:00
Ext2FS: Assert that create_directory() is called with valid mode
This commit is contained in:
parent
a85c61ad51
commit
bfb254ed14
1 changed files with 1 additions and 5 deletions
|
@ -1439,11 +1439,7 @@ KResult Ext2FS::create_directory(InodeIdentifier parent_id, const String& name,
|
|||
{
|
||||
LOCKER(m_lock);
|
||||
ASSERT(parent_id.fsid() == fsid());
|
||||
|
||||
// Fix up the mode to definitely be a directory.
|
||||
// FIXME: This is a bit on the hackish side.
|
||||
mode &= ~0170000;
|
||||
mode |= 0040000;
|
||||
ASSERT(is_directory(mode));
|
||||
|
||||
// NOTE: When creating a new directory, make the size 1 block.
|
||||
// There's probably a better strategy here, but this works for now.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue