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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to