svn commit: r261767 - head/usr.sbin/ctld

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Feb 11 11:37:49 UTC 2014


Author: trasz
Date: Tue Feb 11 11:37:49 2014
New Revision: 261767
URL: http://svnweb.freebsd.org/changeset/base/261767

Log:
  Show proper configuration file line numbers in error messages.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/usr.sbin/ctld/parse.y

Modified: head/usr.sbin/ctld/parse.y
==============================================================================
--- head/usr.sbin/ctld/parse.y	Tue Feb 11 11:36:15 2014	(r261766)
+++ head/usr.sbin/ctld/parse.y	Tue Feb 11 11:37:49 2014	(r261767)
@@ -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;


More information about the svn-src-head mailing list