#92 errno code changed to more appropriate