diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-10-21 20:03:07 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-10-21 20:03:07 +0000 |
| commit | b08409b051b736e643fc491286c70cd852fd2215 (patch) | |
| tree | db06b1200e00b2dd48705b3088c95b57c2cd822c | |
| parent | 8bb20c3016e911e1705d0e73c84e0664ecedf904 (diff) | |
Notes
| -rw-r--r-- | release/sysinstall/attr.c | 12 |
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 */ |
