On Thu, Jun 17, 2010 at 10:21 PM, Rishi Mutnuru
<[email protected]> wrote:
> I observed that pp built out of  PAR-0.90 is extracting the directories in
> /tmp where as PAR-1.005 in /var/tmp.

Fist of all, your talking about PAR::Packer (currently at 1.005) here,
*not* about
PAR (currently at 1.000).

> Is it expected behaviour? Can any one confirm.

No, it does *not* use /var/tmp, at least on Linux.

> Any reasons for this change.
> I don’t have any of TMP related environment variables set.

There was no change in that area. Running "grep /var/tmp ..." over
the sources (of PAR::Packer, PAR and PAR::Dist, just to make sure)
shows no hits.

Quoting myself:

> PAR::Packer tries (cf. par_mktmpdir() in myldr/mktmpdir.c)
> PAR_GLOBAL_TMPDIR, PAR_TMPDIR, TMPDIR, TEMPDIR,
> TEMP, TMP from the environment. If none of these variables is set or
> the directory is not writable, it tries P_tmpdir (as defined in <stdio.h>).

Consulting the FreeBSD Subversion repository shows that stdio.h has

...
#if __XSI_VISIBLE
#define P_tmpdir        "/var/tmp/"
#endif
...
cf. 
http://svn.freebsd.org/viewvc/base/stable/8/include/stdio.h?revision=196045&view=markup

Cheers, Roderich

Reply via email to