summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/parse.y
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-05-26 01:06:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-05-26 01:06:13 +0000
commit834226bdf3265a4e022695e729a15d84ad31f687 (patch)
tree6ee18293994fc4614262342323778d65e66bc6b3 /sbin/ipsecctl/parse.y
parentc4932b8a82619169fd00c10a811c6aa4708683e8 (diff)
\<char> is <char> except for \<newline> -- no exceptions. much like how
other things work. ok henning
Diffstat (limited to 'sbin/ipsecctl/parse.y')
-rw-r--r--sbin/ipsecctl/parse.y6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y
index d7d5a119561..cc2a8fdf689 100644
--- a/sbin/ipsecctl/parse.y
+++ b/sbin/ipsecctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.65 2006/05/15 08:39:51 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.66 2006/05/26 01:06:11 deraadt Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -817,9 +817,7 @@ lgetc(FILE *f)
while ((c = getc(f)) == '\\') {
next = getc(f);
if (next != '\n') {
- if (isspace(next))
- yyerror("whitespace after \\");
- ungetc(next, f);
+ c = next;
break;
}
yylval.lineno = lineno;