Convert bogus strncat() - no pre-zeroed buffer - to strlcat().

(cherry picked from commit d829109fed815966fc78032d71ed38ecd962fc1f)
Fix very old code, if read is partial (n_read < toget) this would write garbage.

(cherry picked from commit 076d45c1216fd7694f1a18745e9bfd49272f84b5)

Conflicts:
	libcfnet/client_code.c
Make sure list is free'd in case of error. A bit cleanups as well.

(cherry picked from commit f62c0e43dba947b237da044278dd48319c604e80)

Conflicts:
	libcfnet/client_code.c
Exit with error if connection is closed before having received CFD_TERMINATOR.

(cherry picked from commit 7359e88682dfa60e13ec42edaacf27adced23b03)
If client fails to run time() send 0 in SYNCH packet. Server should then not fail, unless denybadclocks is set.

(cherry picked from commit 8208d1c3717c5944c534b9d1fa2bdeb67f028cf9)

Conflicts:
	libcfnet/stat_cache.c
Suppress failure on Solaris 11 due to process selection failure.

(cherry picked from commit 909aaa393cb61b72c050c9a1c9f4dd42fbc887e2)
Disable problematic acceptance test completely on Solaris 11.

(cherry picked from commit 3e660cabcf957f3dd4ecbd7465fae458b5227c94)
Fix fakeroot messing up a test by moving it to the unsafe area.

Fakeroot's file magic somehow interferes with the backgrounded
promises which in turn leads to stale processes lingering after the
test has finished.

(cherry picked from commit 1b9a58d50783e46e3a46790de76beff3a9a6b7b7)
Merge pull request #2043 from jimis/jimis_3.6.x_cherries

3.6.x cherry-picks