|
Lines 3899-3918
if (log_oneline)
Link Here
|
| 3899 |
temporary files are created; Exim doesn't use these (apart from when delivering |
3899 |
temporary files are created; Exim doesn't use these (apart from when delivering |
| 3900 |
to MBX mailboxes), but called libraries such as DBM libraries may require them. |
3900 |
to MBX mailboxes), but called libraries such as DBM libraries may require them. |
| 3901 |
If TMPDIR is found in the environment, reset it to the value defined in the |
3901 |
If TMPDIR is found in the environment, reset it to the value defined in the |
| 3902 |
TMPDIR macro, if this macro is defined. */ |
3902 |
EXIM_TMPDIR macro, if this macro is defined. */ |
| 3903 |
|
3903 |
|
| 3904 |
#ifdef TMPDIR |
3904 |
#ifdef EXIM_TMPDIR |
| 3905 |
{ |
3905 |
{ |
| 3906 |
uschar **p; |
3906 |
uschar **p; |
| 3907 |
for (p = USS environ; *p != NULL; p++) |
3907 |
for (p = USS environ; *p != NULL; p++) |
| 3908 |
{ |
3908 |
{ |
| 3909 |
if (Ustrncmp(*p, "TMPDIR=", 7) == 0 && |
3909 |
if (Ustrncmp(*p, "TMPDIR=", 7) == 0 && |
| 3910 |
Ustrcmp(*p+7, TMPDIR) != 0) |
3910 |
Ustrcmp(*p+7, EXIM_TMPDIR) != 0) |
| 3911 |
{ |
3911 |
{ |
| 3912 |
uschar *newp = malloc(Ustrlen(TMPDIR) + 8); |
3912 |
uschar *newp = malloc(Ustrlen(EXIM_TMPDIR) + 8); |
| 3913 |
sprintf(CS newp, "TMPDIR=%s", TMPDIR); |
3913 |
sprintf(CS newp, "TMPDIR=%s", EXIM_TMPDIR); |
| 3914 |
*p = newp; |
3914 |
*p = newp; |
| 3915 |
DEBUG(D_any) debug_printf("reset TMPDIR=%s in environment\n", TMPDIR); |
3915 |
DEBUG(D_any) debug_printf("reset TMPDIR=%s in environment\n", EXIM_TMPDIR); |
| 3916 |
} |
3916 |
} |
| 3917 |
} |
3917 |
} |
| 3918 |
} |
3918 |
} |
| 3919 |
- |
|
|