Opened 19 years ago

Closed 17 years ago

#878 closed defect (worksforme)

GIF output creates files with bad -rw------- rights

Reported by: dem@… Owned by: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc:

Description (last modified by warmerdam)

Using latest GDAL CVS and internal GIF, gdal_translate -of GIF fich.tif fich.gif
creates a file with bad rights -rw-------, and with other drivers it gives
-rw-rw-r-- as expected.

Change History (3)

comment:1 by warmerdam, 19 years ago

Julien, 

This appears to be due to use of a low level open() call in 
egif_lib.c with explicit permissions instead of leaving it to the 
runtime library as is done by fopen().  I will try and look into this
when I am back next week. 

comment:2 by Even Rouault, 17 years ago

I think this bug can be closed now. Current GDAL doesn't use EGifOpenFileName but VSIFOpenL( pszFilename, "w" )

comment:3 by warmerdam, 17 years ago

Description: modified (diff)
Resolution: worksforme
Status: assignedclosed

Excellent point Even.

Closing. Fixed (I think) since 1.4.0.

Note: See TracTickets for help on using tickets.