=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/doas/doas.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- src/usr.bin/doas/doas.c 2015/07/22 16:35:03 1.20 +++ src/usr.bin/doas/doas.c 2015/07/24 06:36:42 1.21 @@ -1,4 +1,4 @@ -/* $OpenBSD: doas.c,v 1.20 2015/07/22 16:35:03 zhuk Exp $ */ +/* $OpenBSD: doas.c,v 1.21 2015/07/24 06:36:42 zhuk Exp $ */ /* * Copyright (c) 2015 Ted Unangst * @@ -173,6 +173,8 @@ yyparse(); fclose(yyfp); + if (parse_errors) + exit(1); } static int