In file do.c (revision 632 in the subversion repository for cfengine 2) at 
the very end of 
the routine UnMount (around line 2350) are these statements:

if ((! DONTDO) && (NUMBEROFEDITS > 0))
   {
   SaveItemList(filelist,VFSTAB[VSYSTEMHARDCLASS],VREPOSITORY);
   AuditLog('y',ptr->audit,ptr->lineno,"Saving filesystem table",CF_CHG);
   }

However, in the AuditLog statement, ptr is NULL, having been set that way 
due to the exit of the "for" loop above (starting around line 2186) so the 
AuditLog
statement generates an immediate segfault.

I don't know whether or not this code was intended to be executed within the 
"for"
loop scope or not so am not sure what the most appropriate patch to fix this 
would be.
My guess would be to change the AuditLog statement to:

   AuditLog('y',NULL,0,"Saving filesystem table",CF_CHG);

but even if that's correct, not being an official developer I suspect I cannot 
enter a patch
into the repository and would appreciate it if someone who was such a developer 
would
do so.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to