DevFileWrapper now understands and respects O_TRUNC.
This commit is contained in:
parent
75282bdab7
commit
4e0f57f4d7
|
@ -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…
Reference in New Issue