help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Too much Cut&Paste


From: Pert Consultores
Subject: Too much Cut&Paste
Date: Wed, 18 Aug 2004 11:40:26 -0300
User-agent: Mutt/1.4.2.1i

Hi I've discovered a little cut&paste problem


In log.c, all syslog facilities LOCALn greater
than 4 are pointing to LOCAL4

I'm sending a patch here.
Also added in the doc




------------------------------------------------------------------------------
diff -Naur cfengine-2.1.10.OLD/doc/cfengine-Reference.texinfo 
cfengine-2.1.10/doc/cfengine-Reference.texinfo
--- cfengine-2.1.10.OLD/doc/cfengine-Reference.texinfo  Mon Aug 16 13:53:38 2004
+++ cfengine-2.1.10/doc/cfengine-Reference.texinfo      Wed Aug 18 11:26:21 2004
@@ -4247,6 +4247,9 @@
 LOG_LOCAL2
 LOG_LOCAL3
 LOG_LOCAL4
+LOG_LOCAL5
+LOG_LOCAL6
+LOG_LOCAL7
 @end smallexample
 
 @c .....................................................
diff -Naur cfengine-2.1.10.OLD/src/log.c cfengine-2.1.10/src/log.c
--- cfengine-2.1.10.OLD/src/log.c       Fri Jul 30 09:53:02 2004
+++ cfengine-2.1.10/src/log.c   Wed Aug 18 11:24:16 2004
@@ -75,15 +75,15 @@
       }
    if (strcmp(value,"LOG_LOCAL5") == 0)
       {
-      facility = LOG_LOCAL4;
+      facility = LOG_LOCAL5;
       }
    if (strcmp(value,"LOG_LOCAL6") == 0)
       {
-      facility = LOG_LOCAL4;
+      facility = LOG_LOCAL6;
       }   
    if (strcmp(value,"LOG_LOCAL7") == 0)
       {
-      facility = LOG_LOCAL4;
+      facility = LOG_LOCAL7;
       }
    
    if (lastsyslog != 1)
------------------------------------------------------------------------------



Thank you very much
--  
Leonardo Helman
Pert Consultores
Argentina

Attachment: cfengine-2.1.10.local.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]