Question about nALFS' file logging functions

Neven Has haski at sezampro.yu
Thu Oct 10 17:28:44 PDT 2002


On Thu, Oct 10, 2002 at 03:22:26PM -0600, Gerard Beekmans wrote:
> > Well, it was easier than I though. The patch allows pruning files and
> > completely ignoring directories specified in the prune list.
> 
> The patch doesn't seem to be working:

Blah, I shouldn't code at 4 AM. :)

Sorry about that.


Neven
-------------- next part --------------
===== src/find.c 1.11 vs edited =====
--- 1.11/src/find.c	Thu Oct 10 19:36:28 2002
+++ edited/src/find.c	Fri Oct 11 02:08:58 2002
@@ -162,11 +162,12 @@
 		return 1;
 	}
 
-	/* Check if a file is in the prune list. */
-	for (i = 0; prunes[i]; i++) {
-		if (strcmp(filename, prunes[i]) == 0) {
-			Debug_logging("In prune list: %s", filename);
-			return 0;
+	if (prunes) { /* Check if a file is in the prune list. */
+		for (i = 0; prunes[i]; i++) {
+			if (strcmp(filename, prunes[i]) == 0) {
+				Debug_logging("In prune list: %s", filename);
+				return 0;
+			}
 		}
 	}
 


More information about the alfs-discuss mailing list