Correct vzps usage
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
Restore pre-3.6 compliance behavior for commands promises.

Commands that exit with 0 result in a repaired promise, unless the
return code interpretation is explicitly overriden via body classes
attributes.

This effectively reverts ce463506e4795f1007a31720afd3300de9bca18e,
adds commentary for generations to come.

Redmine #5761
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.
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.
Merge branch 'master' of github.com:cfengine/core
Pass GenericAgentConfig to NoteVar/Class plugin calls
Redmine #5721: Fix users promises getting confused by NIS or NSS.

getpwnam() will return remote user information if NIS or NSS is
configured as the primary user DB, but we want it to return local user
information. Fix by opening /etc/passwd manually and using
fgetpwent().
Merge pull request #1712 from kacfengine/users_promises_fixes

Redmine #5721: Fix users promises getting confused by NIS or NSS.
Merge pull request #1709 from jimis/minor

Trailing slashdot in access rules, redmine #5775