From: Alan T. DeKok Date: Sat, 23 Feb 2019 19:04:06 +0000 (-0500) Subject: don't print offset X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38849e3ebba3c474ebb6baae08040a0584c3ff58;p=thirdparty%2Ffreeradius-server.git don't print offset we don't track which token came from which line, so it's best to not mislead the admin. We can fix this by tracking line numbers and start of lines in the input buffer, which is a bit more work... --- diff --git a/src/modules/rlm_isc_dhcp/rlm_isc_dhcp.c b/src/modules/rlm_isc_dhcp/rlm_isc_dhcp.c index 5454ba4a5df..bf474a0751b 100644 --- a/src/modules/rlm_isc_dhcp/rlm_isc_dhcp.c +++ b/src/modules/rlm_isc_dhcp/rlm_isc_dhcp.c @@ -1736,9 +1736,8 @@ static int read_file(rlm_isc_dhcp_info_t *parent, char const *filename, bool deb filename, state.lineno, fr_strerror()); } else { - fr_strerror_printf("Failed reading %s:[%d] offset %d - %s", + fr_strerror_printf("Failed reading %s:[%d] - %s", filename, state.lineno, - (int) (state.token - state.line), fr_strerror()); } fclose(fp);