Set STRIPCHOP_DEFAULT for O_RDWR as well as for O_RDONLY so that files
opened for update access can be "strip chopped" too.
This commit is contained in:
parent
c1282751c6
commit
0625a1295b
@ -1,5 +1,8 @@
|
||||
2000-08-14 Frank Warmerdam <warmerda@rommel.atlsci.com>
|
||||
|
||||
* tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY
|
||||
so that files opened for update can be strip chopped too.
|
||||
|
||||
* tif_read.c: fixed up bug with files missing rowsperstrip and
|
||||
the strips per separation fix done a few weeks ago.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_open.c,v 1.2 1999-09-08 19:07:02 warmerda Exp $ */
|
||||
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_open.c,v 1.3 2000-08-14 17:30:58 warmerda Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988-1997 Sam Leffler
|
||||
@ -170,7 +170,7 @@ TIFFClientOpen(
|
||||
* a file is opened read-only.
|
||||
*/
|
||||
tif->tif_flags = FILLORDER_MSB2LSB;
|
||||
if (m == O_RDONLY)
|
||||
if (m == O_RDONLY || m == O_RDWR)
|
||||
#ifdef STRIPCHOP_DEFAULT
|
||||
tif->tif_flags |= TIFF_MAPPED|STRIPCHOP_DEFAULT;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user