Ignore EINVAL/EBADF errors from FTruncate in FileStream.Init (dotnet/coreclr#22788)
authorStephen Toub <stoub@microsoft.com>
Fri, 22 Feb 2019 21:15:31 +0000 (16:15 -0500)
committerJan Kotas <jkotas@microsoft.com>
Fri, 22 Feb 2019 21:15:31 +0000 (13:15 -0800)
commit32fc353ab13ac5b30764350b67919fe4748eaf6f
treeb74b286b51da0e16eb16e0f715110cc2b185c977
parent2fc17fa98329c88aff89d731c0d20d94f07b8679
Ignore EINVAL/EBADF errors from FTruncate in FileStream.Init (dotnet/coreclr#22788)

They indicate we're working with a special file, where failure to truncate is not a fatal condition.

Commit migrated from https://github.com/dotnet/coreclr/commit/187ce49c992aef74cdbf60c445d5f68a60c37f4d
src/libraries/System.Private.CoreLib/src/System/IO/FileStream.Unix.cs