cfengine/core — pull request #556 by kacfengine (2013-04-19 07:54:47+00:00)
Title: Do not get error code from ferror(), only error status.

ferror() only returns true or false. errno must still be used to get
the actual error code.

Fixes issue 2475.