OS-3262 ltp ftruncate returns wrong errno