Mail Archives: djgpp-workers/1999/03/19/17:10:42
It seems that these lines are the culprit:
----- gcc/gnu/gcc-2.81/choose-temp.c excerpt starts. -----
static char *
try (dir, base)
char *dir, *base;
{
if (base != 0)
return base;
if (dir != 0
&& access (dir, R_OK | W_OK | X_OK) == 0)
return dir;
return 0;
}
...
char *
choose_temp_base ()
{
char *base = 0;
...
base = try (getenv ("TMPDIR"), base);
base = try (getenv ("TMP"), base);
base = try (getenv ("TEMP"), base);
----- gcc/gnu/gcc-2.81/choose-temp.c excerpt ends. -----
In particular the line calling access().
Is there any better way than adding:
" char tmp_str[MAX_LEN];
strcpy(tmp_str, base);
strcat(tmp_str, "/");"
to try()?
Shostakovich, Symphony No. 9,
MartinS
- Raw text -