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
|
|