diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-03-10 07:54:45 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2006-03-10 07:54:45 +0000 |
commit | 66e0c84e2b4108be0fc1bce062fe0daea615b4ac (patch) | |
tree | 3fdc24e1c26b15c9023805d2e4c4116e726e9a86 /usr.sbin/config/scan.l | |
parent | af99227be8882f0d1fbf5657e2c55842f26a2b77 (diff) |
Avoid printing the whole file in the error message on missing trailing "
Found by by mpech@; ok mpech@ ray@ miod@
Diffstat (limited to 'usr.sbin/config/scan.l')
-rw-r--r-- | usr.sbin/config/scan.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/config/scan.l b/usr.sbin/config/scan.l index e185c16ba8d..302a0716dd0 100644 --- a/usr.sbin/config/scan.l +++ b/usr.sbin/config/scan.l @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: scan.l,v 1.17 2004/01/04 18:30:05 deraadt Exp $ */ +/* $OpenBSD: scan.l,v 1.18 2006/03/10 07:54:44 otto Exp $ */ /* $NetBSD: scan.l,v 1.13 1997/02/02 21:12:37 thorpej Exp $ */ /* @@ -130,11 +130,11 @@ rmoptions return RMOPTIONS; } \"([^"\n]|\\\")+ { tok = input(); /* eat closing quote */ + yylval.str = intern(yytext + 1); if (tok != '"') { - error("closing quote missing\n"); + error("closing quote missing"); unput(tok); } - yylval.str = intern(yytext + 1); return WORD; } 0[0-7]* { |