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.
Merge pull request #556 from kacfengine/issue-2475

Do not get error code from ferror(), only error status.
Pass GenericAgentConfig to CheckPromises
Remove global CBUNDLESEQUENCE_STR
Do not run policy checks until after all inputs are parsed
ChangeLog cleanup
Note classes when MINUSF is not set, rather than the input file in GenericAgentConfig
Merge remote branch 'upstream/master'