fixed errno usage
Merge branch 'fix_errno'