because when run as services (Win32ese for daemons)
no environment variables are set and tmpdir ends up as /tmp,
which is ambiguous.
Subject:[ID
20000616.002] File::Spec->tmpdir broken when running as service
Message-Id: <
20000616163043.26398.qmail@mail.sergeant.org>
p4raw-id: //depot/cfgperl@6234
$ENV{TMPDIR}
$ENV{TEMP}
$ENV{TMP}
+ C:/temp
/tmp
/
sub tmpdir {
return $tmpdir if defined $tmpdir;
my $self = shift;
- foreach (@ENV{qw(TMPDIR TEMP TMP)}, qw(/tmp /)) {
+ foreach (@ENV{qw(TMPDIR TEMP TMP)}, qw(C:/temp /tmp /)) {
next unless defined && -d;
$tmpdir = $_;
last;