Opened 11 years ago

Closed 11 years ago

#5079 closed defect (fixed) "Permission denied" exception

Reported by: lpinner Owned by: warmerdam
Priority: normal Milestone: 1.10.1
Component: Utilities Version: unspecified
Severity: normal Keywords: rgb2pct

Description crashes with a Permission Denied exception when attempting to create a temporary tiff file in a directory that the user does not have write permission for. This can happen when the script is run from a GUI such as QGIS, eg -

Suggested patch attached that uses a secure temp file.

Attachments (1)

rgb2pct.diff (569 bytes ) - added by lpinner 11 years ago.
patch to use tempfile.mkstemp

Download all attachments as: .zip

Change History (2)

by lpinner, 11 years ago

Attachment: rgb2pct.diff added

patch to use tempfile.mkstemp

comment:1 by warmerdam, 11 years ago

Keywords: rgb2pct added
Milestone: 1.10.1
Resolution: fixed
Status: newclosed

Patched in trunk (r26001) and 1.10 branch (r26002).


Note: See TracTickets for help on using tickets.