Re: A fix for Bug 686922 "no default temp dir"

"Igor V. Melichev" <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
Here is an improved patch.
If it doesn't fit the wish, please explain better what the wish is.

Igor.

[Log message beg]
Fix : The condition for empty environment string was wrong in ztempfile.
Bug 686922 "no default temp dir"
[Log message end]

Branches : HEAD.

Changes:



*** f:\casper\HEAD\gs\src\zfile.c Tue May 20 12:01:30 2003
--- files\gs\src\zfile.c Sat Jul 12 11:30:23 2003
***************
*** 786,791 ****

   code = gp_gettmpdir(tdir, &tlen);
!  if (code < 0 || tlen == 0 ) /* A compatibility to old
gp_open_scratch_file. */
!      strcpy(prefix, gp_file_name_current());
   else
       temp_dir = true;
--- 786,791 ----

   code = gp_gettmpdir(tdir, &tlen);
!  if (code < 0 || tlen == 0 || tdir[0] == 0)
!      strcpy(tdir, gp_file_name_current());
   else
       temp_dir = true;
patch.txt (application/octet-stream, 540 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.