Opened 11 years ago
Closed 11 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)
Change History (2)
by , 11 years ago
Attachment: | rgb2pct.diff added |
---|
comment:1 by , 11 years ago
Keywords: | rgb2pct added |
---|---|
Milestone: | → 1.10.1 |
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch to use tempfile.mkstemp