mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
ramfs doesn't allow opening files as directories.
This commit is contained in:
parent
1f4dc3d0b5
commit
5bf22b2c4a
1 changed files with 2 additions and 0 deletions
|
@ -250,6 +250,8 @@ namespace Sortix
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( (flags & O_LOWERFLAGS) == O_SEARCH ) { Error::Set(ENOTDIR); return NULL; }
|
||||||
|
|
||||||
DevBuffer* file = OpenFile(path, flags, mode);
|
DevBuffer* file = OpenFile(path, flags, mode);
|
||||||
if ( !file ) { return NULL; }
|
if ( !file ) { return NULL; }
|
||||||
Device* wrapper = new DevFileWrapper(file, flags);
|
Device* wrapper = new DevFileWrapper(file, flags);
|
||||||
|
|
Loading…
Add table
Reference in a new issue