Show proper configuration file line numbers in error messages.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2014-02-11 11:37:49 +00:00
parent e0fccc9806
commit 6dc3a9f496
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261767

View File

@ -743,7 +743,7 @@ conf_new_from_file(const char *path)
return (NULL);
}
check_perms(path);
lineno = 0;
lineno = 1;
yyrestart(yyin);
error = yyparse();
auth_group = NULL;