Open execution log file descriptor on every write. #4378
Disallow no-lock and file-input options in cf-agent when called via cfruncommand.

This hardens the already existing limitation, which is enforced in
cf-runagent and cf-serverd, but has a holes. Ie. --no-loc is accepted by
cf-runagent and cf-serverd, and interpreted by cf-agent as --no-lock
as is standard for unix command line tools.
Merge pull request #1708 from vohi/remote-execution

Disallow no-lock and file-input options in cf-agent when called via cfruncommand
Prevent user home dir creation on systems that try to enforce it.

Some systems (CentOS 6.4, for instance) have the default policy to
create the home directory whenever "useradd" is called. But we want
the home_bundle attribute to do this, so we need to prevent it.The
parameter to prevent this is "-M", but it is not available everywhere,
so we call useradd with the --help parameter first to see if it is in
the list of options.

Redmine #5781.
Fix incorrect function documentation.

getline() cannot return 0, but CfReadLine can, because it removes the
newline and the line can then be empty.
Redmine #5781: Do not require a TTY when running sudo in a test.

It will fail since our pipe execution is not a TTY.
Update ChangeLog
Merge pull request #1706 from kacfengine/users_promises_fixes

Redmine #5781: Users promises fixes
Merge pull request #1707 from maciejmrowiec/windows_fd_fix

Open execution log file descriptor on every write. #4378
Merge pull request #1710 from vohi/commands_repaired

Restore pre-3.6 compliance behavior for commands promises.
Redmine#5761: pluck kept_successful_command body
Do not override a kept promise with repaired.

VerifyCommandRetcode takes care of the interpretation, a successful
execution of the command doesn't mean anything at this point.