bug-cfengine
[Top][All Lists]
Advanced

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

[PATCH] typo in init.c


From: Terje Rosten
Subject: [PATCH] typo in init.c
Date: Mon, 01 Sep 2003 14:48:12 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

I believe there is a small typo in cfengine-2.0.8. The symptom is that
cfkey is failing because the directory /var/cfengine/ppkeys is not
present.

This patch seems to fix it:

--- cfengine-2.0.8/src/init.c~  2003-08-18 15:25:03.000000000 +0200
+++ cfengine-2.0.8/src/init.c   2003-09-01 14:29:35.000000000 +0200
@@ -161,9 +161,9 @@
  
 Verbose("Checking integrity of the PKI directory\n");
  
+snprintf(VBUFF,bufsize,"%s/ppkeys/test",VLOCKDIR); 
 if (stat(VBUFF,&statbuf) == -1)
    {
-   snprintf(VBUFF,bufsize,"%s/ppkeys/test",VLOCKDIR);
    MakeDirectoriesFor(VBUFF,'n');
    snprintf(VBUFF,bufsize,"%s/ppkeys",VLOCKDIR); 
    chmod(VBUFF,(mode_t)0700); /* Locks must be immutable to others */    

Thanks,

 - Terje




reply via email to

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