O_TRUNC open shouldn't fail after file truncation