blob: fix errcode on failed ftruncate()