Be const-correct.
(cherry picked from commit dc36952b0939aa7e41404f7c00219f933993f5af)
Introduce text mode to cf_popen and friends, for Windows support.

Part of issue 1884.
(cherry picked from commit a337311e7e96abfcaff3fa20cacf7a4ec1e260ae)
Use quoted path so "C:\Program Files" doesn't cause trouble.

Quoted paths are taken into account by the CommandArg0 function.

Part of issue 1884.
(cherry picked from commit 0f0cf01c21111cc2028cdf2edc46abd27bc33801)
Add usemodule autotest for both Unix and Windows.
(cherry picked from commit 673302d0b822487764337d85a3b8b71a0931516b)
Timestamp on windows was getting truncated, 64 bytes should be enough for everyone...
(cherry picked from commit 610dcb7e605d2db7540e03ccc9359d747c7f087d)

Update ChangeLog.

Conflicts:
	libutils/logging.c
Fix non-root cf-agent flooding syslog (redmine #2980).
(cherry picked from commit 722e393a3cce8f3690120611c237bd5400acd400)
Enable non-root cf-agent logging to syslog.
(cherry picked from commit 4699bc3242a9ac4677c45de3fad422a8a1affe2f)
Update ChangeLog with fix for #2980
Fix cf-execd sending too many emails.

Timestamps in the log file would make all cf-agent logs look different
so cf-execd would send an email on every run, even if nothing changed.
Fixed by removing the timestamps before comparing each log line.

Fixes issue 3011.
(cherry picked from commit 0f6c0d697e0766271eef7669c45a16dc3e1bd7d4)
Update ChangeLog with fix for #3011
Merge remote-tracking branch 'upstream/3.5.x' into 3.5_surfsara