From 0286665a18145c539e72153ff1df9b9c6b31656d Mon Sep 17 00:00:00 2001 From: slioch Date: Mon, 23 Mar 2009 16:50:48 -0700 Subject: skip comment fields in priority file. a comment field is defined by the first non-space character on a line--if this character is a hash it is a comment otherwise it's an active line. --- src/common/unionfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/unionfs.c b/src/common/unionfs.c index 5e90c0c..840dc68 100644 --- a/src/common/unionfs.c +++ b/src/common/unionfs.c @@ -769,7 +769,7 @@ apply_priority(GNode *root_node) char str[1025]; while (fgets(str, 1024, fp) != 0) { gchar** tok_str = g_strsplit(str," ",3); - if (tok_str[0] == NULL || tok_str[1] == NULL) { + if (tok_str[0] == NULL || tok_str[1] == NULL || strncmp(tok_str[0],"#",1) == 0) { continue; } char *path = tok_str[1]; -- cgit v1.2.3