diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-03-23 16:50:48 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-03-23 16:50:48 -0700 |
commit | 0286665a18145c539e72153ff1df9b9c6b31656d (patch) | |
tree | 456ea393535a80f188dcc471f457261426f62f7f /src | |
parent | 43e3a3d74af028dd00b6905dd9967398227baebb (diff) | |
download | vyatta-cfg-0286665a18145c539e72153ff1df9b9c6b31656d.tar.gz vyatta-cfg-0286665a18145c539e72153ff1df9b9c6b31656d.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/unionfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |