mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
DevFileWrapper now understands and respects O_TRUNC.
This commit is contained in:
parent
75282bdab7
commit
4e0f57f4d7
1 changed files with 1 additions and 0 deletions
|
@ -96,6 +96,7 @@ namespace Sortix
|
|||
this->flags = flags;
|
||||
this->offset = 0;
|
||||
this->buffer->Refer();
|
||||
if ( flags & O_TRUNC ) { buffer->Resize(0); }
|
||||
}
|
||||
|
||||
DevFileWrapper::~DevFileWrapper()
|
||||
|
|
Loading…
Add table
Reference in a new issue