New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File::Spec->tmpdir broken when running as service #2098
Comments
From matt@sergeant.orgCreated by matt@sergeant.orgPlease ignore the system spec below - this is a bug for Win32 (up File::Spec uses the following for obtaining the tmpdir value: $ENV{TMPDIR} || $ENV{TEMP} || $ENV{TMP} || '/tmp' (or code to that effect) By default, Windows NT does not define the above environment I suggest changing this selection to: $ENV{TMPDIR} || $ENV{TEMP} || $ENV{TMP} || $ENV{WINDIR} || 'C:/temp' Which is what MS Developer studio apparently uses (so I've heard). Perl Info
|
From @pudgeAt 16.30 +0000 2000.06.16, matt@sergeant.org wrote:
Since it also uses -d to see if the directory exists, you can just foreach (@ENV{qw(TMPDIR TEMP TMP)}, qw(/tmp /)) { So it could be: foreach (@ENV{qw(TMPDIR TEMP TMP)}, qw(/tmp C:/temp /)) { |
Migrated from rt.perl.org#3389 (status was 'resolved')
Searchable as RT3389$
The text was updated successfully, but these errors were encountered: