/* A lexical scanner generated by flex */
/* Scanner skeleton version:
- * $Header: /cvs/src/usr.bin/lex/flex.skl,v 1.11 2010/08/04 18:24:50 millert Exp $
+ * $Header: /home/cvs/openbsd/src/usr.bin/lex/flex.skl,v 1.11 2010/08/04 18:24:50 millert Exp $
*/
#define FLEX_SCANNER
}
} else {
if ((fp = open_sudoers(path, TRUE, &keepopen)) == NULL) {
- char *errbuf;
- if (asprintf(&errbuf, "%s: %s", path, strerror(errno)) != -1) {
- yyerror(errbuf);
- free(errbuf);
- } else {
- yyerror("unable to allocate memory");
- }
+ /* The error was already printed by open_sudoers() */
+ yyerror(NULL);
return FALSE;
}
istack[idepth].more = NULL;
}
} else {
if ((fp = open_sudoers(path, TRUE, &keepopen)) == NULL) {
- char *errbuf;
- if (asprintf(&errbuf, "%s: %s", path, strerror(errno)) != -1) {
- yyerror(errbuf);
- free(errbuf);
- } else {
- yyerror("unable to allocate memory");
- }
+ /* The error was already printed by open_sudoers() */
+ yyerror(NULL);
return FALSE;
}
istack[idepth].more = NULL;