Skip Menu |

This queue is for tickets about the File-Temp CPAN distribution.

Report information
The Basics
Id: 25568
Status: resolved
Priority: 0/
Queue: File-Temp

People
Owner: Nobody in particular
Requestors: SMPETERS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.19



Subject: File::Temp: error msg for parent directory
The following bug was opened into the core Perl RT. Since you requested tickets be opened in the File-Temp queue, here it is. Subject: File::Temp: error msg for parent directory Date: Fri, 26 Jan 2007 12:41:44 +0100 To: <perlbug@perl.org> From: "Dintelmann, Peter" <Peter.Dintelmann@Dresdner-Bank.com> This is a bug report for perl from Peter.Dintelmann@dresdner-bank.com, generated with the help of perlbug 1.35 running under perl v5.8.8. The error message $ perl -MFile::Temp=tempfile -e 'tempfile DIR => "/nosuch"' Error in tempfile() using /nosuch/XXXXXXXXXX: Parent directory (/nosuch/) is not a directory at -e line 1 seems strange to me because it states that "/nosuch/" is a directory and that it is not a directory. Maybe we can simply change it to "'/nosuch/' does not exist or is not a directory". --- blead/lib/perl5/5.9.5/File/Temp.pm 2007-01-26 11:42:37.000000000 +0100 +++ /var/tmp/Temp.pm 2007-01-26 12:32:07.000000000 +0100 @@ -438,7 +438,7 @@ # that does not exist or is not writable unless (-d $parent) { - ${$options{ErrStr}} = "Parent directory ($parent) is not a directory"; + ${$options{ErrStr}} = "'$parent' does not exist or is not a directory"; return (); } unless (-w $parent) { --- Flags: category=library severity=low --- Site configuration information for perl v5.8.8: Configured by p013176 at Mon Jul 24 10:05:57 MEST 2006. Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=solaris, osvers=2.9, archname=sun4-solaris-thread-multi-64int uname='sunos oikbm03 5.9 generic_118558-28 sun4u sparc sunw,ultra-5_10 ' config_args='-Dprefix=/opt/perl32 -Uinstallusrbinperl -Dcc=gcc -Doptimize=-O2 -Aldflags=-R/usr/local/lib -Duseshrplib -Duseperlio -Dusethreads -Duselargefiles -Duse64bitint -des' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-D_REENTRANT -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include' ccversion='', gccversion='3.4.2', gccosandvers='solaris2.9' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='gcc', ldflags =' -R/usr/local/lib -L/usr/local/lib ' libpth=/usr/local/lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -lgdbm -ldl -lm -lpthread -lc perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R /opt/perl32/lib/5.8.8/sun4-solaris-thread-multi-64int/CORE' cccdlflags='-fPIC', lddlflags='-G -R/usr/local/lib -L/usr/local/lib' Locally applied patches: --- @INC for perl v5.8.8: /opt/perl32/lib/5.8.8/sun4-solaris-thread-multi-64int /opt/perl32/lib/5.8.8 /opt/perl32/lib/site_perl/5.8.8/sun4-solaris-thread-multi-64int /opt/perl32/lib/site_perl/5.8.8 /opt/perl32/lib/site_perl . --- Environment for perl v5.8.8: HOME=/export/home/p013176 LANG (unset) LANGUAGE (unset) LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/opt/perl32/bin:/usr/bin:/bin:/usr/sbin:/sbin PERL_BADLANG (unset) SHELL=/usr/bin/bash
Should now be clearer in V0.19 / V0.20