- Timestamp:
- 2009-11-27T16:56:24+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/common-src/packages/gdbm/gdbm-1.8.3/gdbmopen.c
r18097 r20976 381 381 wrong_endianness = (partial_header.header_magic == 0xCE9A5713); 382 382 383 // GREENSTONE CUSTOMISATION (thanks to Andrew Brooks): prevent write access to wrong-byte-order databases 384 if (wrong_endianness && ((flags & GDBM_OPENMASK) != GDBM_READER)) 385 { 386 gdbm_close (dbf); 387 gdbm_errno = GDBM_CANT_BE_WRITER; 388 return NULL; 389 } 390 383 391 // GREENSTONE CUSTOMISATION: Swap each value in the partial header if the GDBM file is the wrong endianness 384 392 if (wrong_endianness)
Note:
See TracChangeset
for help on using the changeset viewer.