develooper Front page | perl.perl5.porters | Postings from October 2001

[ID 20011030.063] File::Temp tempdir (CLEANUP => 1) and -T onSolaris 8

Thread Next
From:
eedalf
Date:
October 30, 2001 04:33
Subject:
[ID 20011030.063] File::Temp tempdir (CLEANUP => 1) and -T onSolaris 8
Message ID:
200110301232.NAA02991@oche150.eed.ericsson.se
This is a bug report for perl from eedalf@eed.ericsson.se,
generated with the help of perlbug 1.28 running under perl v5.6.0.


-----------------------------------------------------------------
[Please enter your report here]

Hi,

this script:

    #!/opt/local/perl-5.6.0/bin/perl -wT

    BEGIN { %ENV = () }

    use File::Temp qw (tempdir);

    $tempdir = tempdir (CLEANUP => 1);
    $tempdir = $1 if $tempdir =~ /(\S*)/;
    print "$tempdir\n";
    system ("/bin/touch $tempdir/xxx") and die $!;

fails with this message:

    oche150:eedalf {101} ./temp.pl 
    /tmp/pbWGPm5ZAo
    Insecure dependency in unlink while running with -T switch at /opt/local/perl-5.6.0/lib/5.6.0/File/Path.pm line 220.
    END failed--call queue aborted.

Thanks
Alex

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=low
---
Site configuration information for perl v5.6.0:

Configured by root at Wed Oct 11 12:45:57 MET DST 2000.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris
    uname='sunos aachen 5.6 generic_105181-12 sun4u sparc sunw,ultra-250 '
    config_args='-Dcc=/opt/local/gcc-2.95.2/bin/gcc -Dprefix=/opt/local/perl-5.6.0 -Dlocincpth=/opt/local/berkeleyDB/include -Dloclibpth=/opt/local/berkeleyDB/lib -Uinstallusrbinperl -Uusenm'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='/opt/local/gcc-2.95.2/bin/gcc', optimize='-O', gccversion=2.95.2 19990816 (release)
    cppflags='-fno-strict-aliasing -I/opt/local/berkeleyDB/include'
    ccflags ='-fno-strict-aliasing -I/opt/local/berkeleyDB/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='/opt/local/gcc-2.95.2/bin/gcc', ldflags =' -L/opt/local/berkeleyDB/lib '
    libpth=/opt/local/berkeleyDB/lib /lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lsocket -lnsl -ldb -ldl -lm -lc -lcrypt -lsec
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/opt/local/berkeleyDB/lib'

Locally applied patches:
    

---
@INC for perl v5.6.0:
    /home/eedalf/lib/site_perl/5.6.0/sun4-solaris
    /home/eedalf/lib/site_perl/5.6.0/sun4-solaris
    /home/eedalf/lib/site_perl/5.6.0
    /opt/local/perl-5.6.0/lib/5.6.0/sun4-solaris
    /opt/local/perl-5.6.0/lib/5.6.0
    /opt/local/perl-5.6.0/lib/site_perl/5.6.0/sun4-solaris
    /opt/local/perl-5.6.0/lib/site_perl/5.6.0
    /opt/local/perl-5.6.0/lib/site_perl
    .

---
Environment for perl v5.6.0:
    HOME=/home/eedalf
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/home/eedalf/lib:/opt/local/odbc-bridge/easysoft/lib:/opt/local/odbc-bridge/easysoft/oob/client/lib:/opt/local/libXpm-3.4.8:/opt/local/libpng-1.0.2/lib:/opt/local/sybase/lib:/usr/dt/lib:/opt/local/glib-1.2.3/lib:/opt/local/gtk+-1.2.3/lib:/usr/lib:/usr/dt/lib:/all/oracle/8.1.7/lib:/all/oracle/8.1.7/jdbc/lib:/all/aps/4.1/lib/runtime:/usr/openwin/lib:/usr/ucblib:/usr/openwin/lib
    LOGDIR (unset)
    PATH=/home/eedalf/bin:/home/eedalf/apache/bin:/opt/local/perl-5.6.0/bin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/usr/openwin/demo:/Local/teTeX/bin:/usr/ucb:/usr/bin:/opt/local/bin:/usr/local/bin:/usr/sbin:/home/tool/bin:/usr/ucb:/usr/tran/sparc/bin:/opt/local/jdk1.2.2/bin:/all/oracle/8.1.7/bin:/usr/ucb:/bin:/usr/bin:/home/eedalf/bin:.:/opt/local/bin:/usr/local/bin:/usr/sbin:/usr/ccs/bin:/usr/dt/bin:/home/tool/bin:/usr/atria/bin:/usr/atria/etc:/proj/eedx_confix/bin:/usr/tran/sparc/bin:/usr/ucb:/all/aps/4.1/bin:/usr/openwin/bin
    PERL5LIB=/home/eedalf/lib/site_perl/5.6.0/sun4-solaris:/home/eedalf/lib/site_perl/5.6.0
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About