summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-03-25 11:45:03 +0000
committertrasz <trasz@FreeBSD.org>2014-03-25 11:45:03 +0000
commit68324fc037c605b09145d34d4da2240f3ebe1025 (patch)
treebacfe7fd47fd64301be332f8a0012153b6abd86a /usr.sbin
parente5c161c379feca32c8fc6d20c9ee6c972bb990ef (diff)
downloadFreeBSD-src-68324fc037c605b09145d34d4da2240f3ebe1025.zip
FreeBSD-src-68324fc037c605b09145d34d4da2240f3ebe1025.tar.gz
MFC r261767:
Show proper configuration file line numbers in error messages. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ctld/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ctld/parse.y b/usr.sbin/ctld/parse.y
index 07b4d67..a7e01f6 100644
--- a/usr.sbin/ctld/parse.y
+++ b/usr.sbin/ctld/parse.y
@@ -598,7 +598,7 @@ conf_new_from_file(const char *path)
return (NULL);
}
check_perms(path);
- lineno = 0;
+ lineno = 1;
yyrestart(yyin);
error = yyparse();
auth_group = NULL;
OpenPOWER on IntegriCloud