This one time, at band camp, Eric Sorenson wrote:
>Can you please try the attached patch? It compiles OK but I can't 
>easily test it tonight.  This fixes the above problem as well as the 
>frequent complaint that the documentation differs from reality. The docs 
>say that if EmailMaxLines is unset, it defaults to 100 but the code 
>says 20. 

The patch is working for me on 2.1.15.

>-- 
> - Eric Sorenson - N37 17.255 W121 55.738 - http://eric.explosive.net -
> - Personal colo with a professional touch - http://www.explosive.net -
>Index: cfexecd.c
>===================================================================
>--- cfexecd.c  (revision 101)
>+++ cfexecd.c  (working copy)
>@@ -459,8 +459,16 @@
>    if (strcmp(name,"EmailMaxLines") == 0)
>       {
>       Debug("%s/%s\n",name,content);
>-      MAXLINES = 20;
>-      sscanf(content,"%d",&MAXLINES);
>+      MAXLINES = 100;
>+      if (strcmp(content,"inf") == 0)
>+         {
>+       MAXLINES = -2;
>+       Debug("EmailMaxLines set to infinity\n");
>+         }
>+      else 
>+         {
>+         sscanf(content,"%d",&MAXLINES);
>+       }
>       continue;
>       }
> 

>-- 
>Help-cfengine mailing list
>Help-cfengine@gnu.org
>http://lists.gnu.org/mailman/listinfo/help-cfengine



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to