]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't print offset
authorAlan T. DeKok <aland@freeradius.org>
Sat, 23 Feb 2019 19:04:06 +0000 (14:04 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 23 Feb 2019 19:15:20 +0000 (14:15 -0500)
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...

src/modules/rlm_isc_dhcp/rlm_isc_dhcp.c

index 5454ba4a5dfbf40438d1b3a96d2eba55da3b9747..bf474a0751b379637bd198db7cece95eef251958 100644 (file)
@@ -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);