save errno if using later