svn commit: r263715 - stable/10/usr.sbin/ctld

Edward Tomasz Napierala trasz at FreeBSD.org
Tue Mar 25 11:45:03 UTC 2014


Author: trasz
Date: Tue Mar 25 11:45:03 2014
New Revision: 263715
URL: http://svnweb.freebsd.org/changeset/base/263715

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

Modified:
  stable/10/usr.sbin/ctld/parse.y
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/ctld/parse.y
==============================================================================
--- stable/10/usr.sbin/ctld/parse.y	Tue Mar 25 11:43:09 2014	(r263714)
+++ stable/10/usr.sbin/ctld/parse.y	Tue Mar 25 11:45:03 2014	(r263715)
@@ -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;


More information about the svn-src-all mailing list