summaryrefslogtreecommitdiff
path: root/sysutils/cfengine2/patches/patch-ae
blob: 1879a33d6c3a6ee44c6edade5c9910a5b3fab529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ae,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $

--- src/image.c.orig	Thu Feb 15 07:23:22 2001
+++ src/image.c
@@ -206,9 +206,12 @@
    DeleteItemList(namecache);
    }
  
-DeleteCompressedArray(ip->inode_cache);
-
-ip->inode_cache = NULL;
+	/* Only flush when exiting initial call to RecursiveImage() */
+if (strcmp(from,ip->path) == 0)
+   {
+   DeleteCompressedArray(ip->inode_cache);
+   ip->inode_cache = NULL;
+   }
 
 cfclosedir(dirh);
 }