Removed wrong errno setting.