Details Ticket 3518


Comment | Reply | Take | Resolve


Serial Number 3518
Subject G_tempfile() - possible problems in programs switching locations
Area grass6
Queue grass
Requestors tutey@o2.pl
Owner none
Status open
Last User Contact Never contacted
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Wed Jul 26 14:43:55 2006 (2 yr ago)
Created Sat Aug 13 14:01:14 2005 (3 yr ago)

Transaction History Ticket 3518


Sat, Aug 13 2005 14:01:14    Request created by guest  
Subject: G_tempfile() - possible problems in programs switching locations

Platform: GNU/Linux/i386
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: 61 cvs 13.08.05

Hi

This is a followup of a discussion on the (fixed) bug https://intevation.de/rt/webrt?serial_num=3362
&display=History
Brad Douglas wrote:

>>> Yes, it's in G_asprintf(). Simply changing G_tempfile() back to
>>> tmpfile() on line 37 in asprintf.c fixes it. There may be other
>>> consequences so I suggest the maintainer makes the reversion himself in
>>> cvs.

Paul Kelly wrote:

>> Probably would need to think about systematically changing some other 
>> occurences of G_tempfile() as Glynn and Morten suggested.

Glynn Clements wrote:

> I agree.
>
> The alternative is to require any program which switches locations
> using G__switch_env() to ensure that G_tempfile() doesn't get called
> while the location is switched. Given that calls to G_tempfile() could
> be hidden deep down in the call graph, that requirement would be
> extremely hard to comply with.

Maciek
Sat, Aug 13 2005 14:02:25    Area changed to grass6.1 by msieczka  
Wed, Aug 31 2005 20:55:35    Area changed to grass6 by mneteler  
Wed, Jul 26 2006 14:43:55    User changed to tutey@o2.pl by msieczka  
Comment | Reply | Take | Resolve

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request