Opened 4 years ago

Closed 4 years ago

#5079 closed defect (fixed)

rgb2pct.py "Permission denied" exception

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

Description

rgb2pct.py 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 - http://gis.stackexchange.com/a/60166/2856

Suggested patch attached that uses a secure temp file.

Attachments (1)

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

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by lpinner

Attachment: rgb2pct.diff added

patch to use tempfile.mkstemp

comment:1 Changed 4 years ago by warmerdam

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

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

Thanks!

Note: See TracTickets for help on using tickets.