Add acceptance test for list extending itself
Redmine #3048: Fix configure --with-libacl.

Apparently AC_CHECK_HEADERS runs the third argument if *any* of the
headers are not found, instead of if none of them are found, so that
logic needs to be outside the loop.
Redmine #4809: Fix several filestat() fields on Windows.

Some are best-effort, like permoct will always be 666 or 444, because
the only non-ACL file attribute on Windows that maps to Unix is the
read-only attribute.
Skip several tests that use inode data on Windows.
Fix several acceptance tests after the introduction of $(G.etc_group).

The main problem is that the path contains redundant '../../' parts
and the test doesn't expect that.

Redmine #4809.
Revert "Quick and dirty fix to get CRLF support in edit_line promises on Win."

This reverts commit 9ca10d35190a646cc6f4f4ff43a4ec79468b9a10.
Improved error messages when chdir fails.
Move Windows specific initialization to enterprise.
Also test for crash in readtcp_connection_fail acceptance test.
sys.hardware_addresses not expanded on hpux
Fix value
Add ticket #
sys.hardware_addresses not expanded on HPUX
Socket leak fix in call-collect.

When the client's cf-serverd decides not to wait for the hub's queue
to die down, logging that decision is not enough: it needs to actually
close the socket and not fall through into the code that delivers the
report.  ConnectionInfoNew() can't fail, so testing for that was dumb
(and, if it'd made any sense, should have had an else clause to close
the socket).  Added some pertinent assertions.
Avoid needing to cast a pthread_create()'s function.

Change cf-serverd/server.c's HandleConnection to take a void* and
internally read it as a ServerConnectionState *, so as to avoid a
complicated and ugly cast.
Mark as needswork on Win
Switch "touch" syntax to be compatible with HPUX.
Use PATH_MAX, not FILENAME_MAX for portability reasons.

HPUX has a ridiculously short FILENAME_MAX of 14 bytes.

Fixes 00_basics/validation/validation_tagging_directory.cf test.
Redmine #4733: Make edit_line CRLF aware.

This detects the newline mode before an edit begins, remembers it and
applies the same newline mode when the file is saved.

In many places where we know we are reading text files, we now switch
to opening in text mode on Windows, which is safe even if the file has
LF endings (either line ending will return LF in memory). On Unix it
has no effect.

For files contained within the /var/cfengine tree, I generally stick
to using binary mode, even for text files, since it lowers the risk,
and they don't generally need to be CRLF format anyway.
Silence a warning about unused argument.