DevFileWrapper now understands and respects O_TRUNC.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-01-08 14:15:51 +01:00
parent 75282bdab7
commit 4e0f57f4d7
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ namespace Sortix
this->flags = flags;
this->offset = 0;
this->buffer->Refer();
if ( flags & O_TRUNC ) { buffer->Resize(0); }
}
DevFileWrapper::~DevFileWrapper()