unix.cpp (Firebird-3.0.2.32703-0.tar.bz2) | : | unix.cpp (Firebird-3.0.4.33054-0.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 1207 | skipping to change at line 1207 | |||
if (lseek(desc, LSEEK_OFFSET_CAST 0, 0) == (off_t) -1) | if (lseek(desc, LSEEK_OFFSET_CAST 0, 0) == (off_t) -1) | |||
{ | { | |||
ERR_post(Arg::Gds(isc_io_error) << Arg::Str("lseek") << Arg::Str( file_name) << | ERR_post(Arg::Gds(isc_io_error) << Arg::Str("lseek") << Arg::Str( file_name) << | |||
Arg::Gds(isc_io_read_err) << Arg::Unix(errno)); | Arg::Gds(isc_io_read_err) << Arg::Unix(errno)); | |||
} | } | |||
// Validate database header. Code lifted from PAG_header. | // Validate database header. Code lifted from PAG_header. | |||
if (hp->hdr_header.pag_type != pag_header /*|| hp->hdr_sequence*/) | if (hp->hdr_header.pag_type != pag_header /*|| hp->hdr_sequence*/) | |||
goto quit; | goto quit; | |||
if (!Ods::isSupported(hp->hdr_ods_version, hp->hdr_ods_minor)) | if (!Ods::isSupported(hp)) | |||
goto quit; | goto quit; | |||
if (hp->hdr_page_size < MIN_PAGE_SIZE || hp->hdr_page_size > MAX_PAGE_SIZ E) | if (hp->hdr_page_size < MIN_PAGE_SIZE || hp->hdr_page_size > MAX_PAGE_SIZ E) | |||
goto quit; | goto quit; | |||
// At this point we think we have identified a database on the device. | // At this point we think we have identified a database on the device. | |||
// PAG_header will validate the entire structure later. | // PAG_header will validate the entire structure later. | |||
retval = true; | retval = true; | |||
quit: | quit: | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |