summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--release/sysinstall/attr.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/release/sysinstall/attr.c b/release/sysinstall/attr.c
index e5b2d6777028..ee863c9deee7 100644
--- a/release/sysinstall/attr.c
+++ b/release/sysinstall/attr.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: attr.c,v 1.3.2.2 1995/10/18 05:01:53 jkh Exp $
+ * $Id: attr.c,v 1.3.2.4 1995/10/20 21:56:55 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -85,12 +85,14 @@ attr_parse(Attribs *attr, int fd)
state = COMMENT;
continue;
}
- else if (isalpha(ch)) {
+ else if (isalpha(ch) || ch == '_') {
hold_n[n++] = ch;
state = NAME;
}
- else
- msgFatal("Invalid character '%c' at line %d\n", ch, lno);
+ else {
+ msgDebug("Parse config: Invalid character '%c' at line %d", ch, lno);
+ state = COMMENT; /* Ignore the rest of the line */
+ }
break;
case COMMENT:
@@ -148,7 +150,7 @@ attr_parse(Attribs *attr, int fd)
break;
default:
- msgFatal("Unknown state at line %d??\n", lno);
+ msgFatal("Unknown state at line %d??", lno);
}
}
attr[num_attribs].name[0] = '\0'; /* end marker */