[patch] cfexecd 2.2.6-2.2.8 does not send email

Davin Chan <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
I started using cfengine 2.2.7 (this issue also affects 2.2.6 and 2.2.8) 
and noticed that I wasn't getting email when I should.  Chasing it down, 
EVP_get_digestbyname() was failing due to OpenSSL_add_all_digests() not 
being called before EVP_get_digestbyname().

It looks like OpenSSL_add_all_digests() was accidently dropped in 2.2.6 
from looking at the different releases.  Here's a one-liner patch to fix 
the issue.

Davin

diff -ru cfengine-2.2.7/src/cfexecd.c cfengine-2.2.7-new/src/cfexecd.c
--- cfengine-2.2.7/src/cfexecd.c        2008-05-15 03:28:54.000000000 
-0700
+++ cfengine-2.2.7-new/src/cfexecd.c    2008-08-15 10:02:50.927924600 
-0700
@@ -705,6 +705,8 @@

  Debug2("FileChecksum(%c,%s)\n",type,filename);

+OpenSSL_add_all_digests();
+
  if ((file = fopen (filename, "rb")) == NULL)
     {
     printf ("%s can't be opened\n", filename);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.