Commit f43cc4e7 authored by Jussi Kivilinna's avatar Jussi Kivilinna
Browse files

ubgps: disable tail check for ALP file



Assumption that ALP file ends with "XX" mark proved to be wrong.
Signed-off-by: default avatarJussi Kivilinna <jussi.kivilinna@haltian.com>
parent 33dda0fc
......@@ -1786,6 +1786,7 @@ bool ubgps_check_alp_file_validity(const char *filepath)
goto out;
}
#if 0
/* Get tail */
rlen = lseek(fd, -2, SEEK_END);
......@@ -1806,9 +1807,10 @@ bool ubgps_check_alp_file_validity(const char *filepath)
if (!(buf[0] == 'X' && buf[1] == 'X'))
{
dbg("invalid header, %02X:%02X\n", buf[0], buf[1]);
dbg("invalid tail, %02X:%02X\n", buf[0], buf[1]);
goto out;
}
#endif
/* ALP file appears to be valid. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment