[GRASS-SVN] r45111 - grass/trunk/imagery/i.rectify
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 20 14:30:29 EST 2011
Author: mmetz
Date: 2011-01-20 11:30:28 -0800 (Thu, 20 Jan 2011)
New Revision: 45111
Modified:
grass/trunk/imagery/i.rectify/readcell.c
Log:
Temporary file must be created in input location
Modified: grass/trunk/imagery/i.rectify/readcell.c
===================================================================
--- grass/trunk/imagery/i.rectify/readcell.c 2011-01-20 19:24:12 UTC (rev 45110)
+++ grass/trunk/imagery/i.rectify/readcell.c 2011-01-20 19:30:28 UTC (rev 45111)
@@ -49,10 +49,8 @@
c->refs = (int *)G_malloc(nblocks * sizeof(int));
if (nblocks < nx * ny) {
- /* Temporary file must be created in output location */
- select_target_env();
+ /* Temporary file must be created in input location */
filename = G_tempfile();
- select_current_env();
c->fd = open(filename, O_RDWR | O_CREAT | O_EXCL, 0600);
if (c->fd < 0)
G_fatal_error(_("Unable to open temporary file"));
More information about the grass-commit
mailing list