Redmine#5624: add readcsv() example
Make sure there are no lingering threads when we clean up.
Add dummy_etc directory in source tarball.
remake_outputs.pl was missing from the source tarball.
Merge pull request #1772 from jimis/master

3.6.x changes missing from master.
Redmine#6189: Store the hardcoded bootstrap file in a variable

..instead of using it directly to prevent old GCCs from failing due to
fprintf usage as a macro

Modified by: Kristian Amlie <kristian.amlie@cfengine.com>
Merge pull request #1775.
Redmine #5874: Do not compile users promises if pw functions not found

This is needed for NetBSD, which has PAM, but not fgetpwent and
friends.
Redmine #5874: Add --without-pam option to turn off compiling with PAM
Merge pull request #1768 from kacfengine/without-pam_option

Redmine #5874: Some users promise compile fixes
Leak-fix: destroy policy that fails partial check.

When LoadPolicyFile() loads a policy, it PolicyCheckPartial()s it;
if this failed, it leaked the policy while returning NULL.
Leak-fix: close the signal pipe on exit().
Leak-fix (FD): close socket when aborting on failure to lock.

That's in cf-serverd's StartServer().  Also avoid using an invalid
socket; if OpenReceiverChannel() fails to bind, it closes the socket
it just tried to use, so we should reset the socket variable to -1 so
we don't try to re-use the socket we just closed.  Split a long line.
Fix leaked fallback Rlist.

When the common control gives no bundle sequence, we used { "main" }
as fall-back for it; however, this fallback list wasn't getting
cleared away (and the fact that we were modifying the NULL list we got
back const-qualified was provoking a compiler warning - which is what
brought this to my attention).
Refined .gitignore; stamp-h1 can land all over the place.

It would seem the autotools create random files called stamp-h1 in
random places.  Ignore all of them !
Merge pull request #1776 from ediosyncratic/leak-fixes

Leak fixes