# New Ticket Created by  [EMAIL PROTECTED] 
# Please include the string:  [perl #34252]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34252 >



This is a bug report for perl from [EMAIL PROTECTED],
generated with the help of perlbug 1.34 running under perl v5.8.1.

Say we have a script /opt/test.pl who use FindBin::Bin.
Say that the user foo has read and execute access to the /opt directory.
Say that the user foo has no access to the /home/bar directory.

When I run, as bar, and into the /home/bar directory:
"sudo -u foo /opt/test.pl",
the $FindBin::Bin is empty, instead to be equal to "/opt/".

Thanks to take a look at this.

Michael HOOREMAN

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

Configured by jvbo at Tue Oct 28 09:21:10 CET 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
  Platform:
    osname=linux, osvers=2.4.7-10, archname=i686-linux
    uname='linux obelix 2.4.7-10 #1 thu sep 6 17:27:27 edt 2001 i686 unknown '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.1 2.96-98)', 
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.2.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.1:
    /usr/local/lib/perl5/5.8.1/i686-linux
    /usr/local/lib/perl5/5.8.1
    /usr/local/lib/perl5/site_perl/5.8.1/i686-linux
    /usr/local/lib/perl5/site_perl/5.8.1
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.8.1:
    HOME=/home/mhoo
    LANG=en_GB
    LANGUAGE (unset)
    
LD_LIBRARY_PATH=/u01/app/oracle/product/9.2.0/lib:/lib:/usr/lib:/opt/informix/lib:/opt/informix/lib/esql:/opt/informix/lib/tools:/usr/lib::/usr/local/lib
    LOGDIR (unset)
    
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/opt/dmp/util:/opt/dmp/bin:/opt/informix/bin:/u01/app/oracle/product/9.2.0/bin:/home/mhoo/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash

Reply via email to