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

Re: [ID 20010103.001] File::Find not descending into Joliet-filesystem

From:
Richard Soderberg
Date:
January 9, 2001 22:10
Subject:
Re: [ID 20010103.001] File::Find not descending into Joliet-filesystem
Message ID:
NAEKLNAAHLMBPMPNBMLEAEIACKAA.rs@crystalflame.net
I don't have time to handle this until the weekend; figured I'd forward it
along and see if someone else helps before then.

R.

-----Original Message-----
From: Torsten Scheck [mailto:torsten.scheck@sot.de]
Sent: Thursday, January 04, 2001 4:44 AM
To: Richard Soderberg
Subject: Re: [ID 20010103.001] File::Find not descending into
Joliet-filesystem


Richard Soderberg wrote:
 > Do you have any example code I can test on my local system
 > that would demonstrate this problem?

Sure. Here we go: example code & output on my RH7-box.

-----------cut here----------
#!/usr/bin/perl -w
use strict;
use File::Find;
find(sub{print "$File::Find::name\n"}, @ARGV) if @ARGV;
__END__
-----------cut here----------

# Red Hat 7.0

# CD: ISO 9660, Rockridge, Joliet
#     mkisofs -f -L -J -r -q

# using joliet-filesystem
mount -t iso9660 -o ro,norock /dev/cdrom /mnt/mnt\
&& ./findtest.pl /mnt/mnt \
&& umount /mnt/mnt

Output:
/mnt/mnt
/mnt/mnt/README
/mnt/mnt/_Driver
/mnt/mnt/_Images
/mnt/mnt/_boot
/mnt/mnt/_pq
/mnt/mnt/_tools
/mnt/mnt/_win
/mnt/mnt/bin
/mnt/mnt/boot
/mnt/mnt/dev
/mnt/mnt/etc
/mnt/mnt/lib
/mnt/mnt/mnt
/mnt/mnt/proc
/mnt/mnt/sbin
/mnt/mnt/tmp
/mnt/mnt/usr
/mnt/mnt/var

# using iso-filesystem
mount -t iso9660 -o ro,norock,nojoliet /dev/cdrom /mnt/mnt\
&& ./findtest.pl /mnt/mnt \
&& umount /mnt/mnt

Output:
/mnt/mnt
/mnt/mnt/bin
/mnt/mnt/boot
/mnt/mnt/dev
/mnt/mnt/etc
/mnt/mnt/lib
/mnt/mnt/mnt
/mnt/mnt/proc
/mnt/mnt/readme
/mnt/mnt/sbin
/mnt/mnt/tmp
/mnt/mnt/usr
/mnt/mnt/var
/mnt/mnt/_boot
/mnt/mnt/_driver
/mnt/mnt/_images
/mnt/mnt/_pq
/mnt/mnt/_tools
/mnt/mnt/_win

# using rockridge-filesystem

mount -t iso9660 -o ro /dev/cdrom /mnt/mnt\
&& ./findtest.pl /mnt/mnt \
&& umount /mnt/mnt

Output:
/mnt/mnt
/mnt/mnt/mnt
/mnt/mnt/README
/mnt/mnt/tmp
/mnt/mnt/_win
/mnt/mnt/_win/WinME
/mnt/mnt/_win/WinME/base2.cab
/mnt/mnt/_win/WinME/catalog.cab
/mnt/mnt/_win/WinME/cleanhd.txt
/mnt/mnt/_win/WinME/deltemp.com
/mnt/mnt/_win/WinME/dossetup.bin
/mnt/mnt/_win/WinME/driver5.cab
/mnt/mnt/_win/WinME/driver6.cab
/mnt/mnt/_win/WinME/driver7.cab
/mnt/mnt/_win/WinME/extract.exe
/mnt/mnt/_win/WinME/format.com
/mnt/mnt/_win/WinME/mini.cab
.
.
.



Richard Soderberg wrote:

> Do you have any example code I can test on my local system that would
> demonstrate this problem?
>
> R.
>
>
>> -----Original Message-----
>> From: torsten@sotlx2.sot.de [mailto:torsten@sotlx2.sot.de]
>> Sent: Wednesday, January 03, 2001 2:11 AM
>> To: perl5-porters@perl.org
>> Cc: richard@perl.org
>> Subject: [ID 20010103.001] File::Find not descending into
>> Joliet-filesystem
>>
>>
>>
>> This is a bug report for perl from scheck@bigfoot.de,
>> generated with the help of perlbug 1.26 running under perl 5.00503.
>>
>> This is a bug report for perl from scheck@bigfoot.de,
>> generated with the help of perlbug 1.28 running under perl v5.6.0.
>>
>>
>> -----------------------------------------------------------------
>> [Please enter your report here]
>> When descending into a Joliet filesystem Find stops after the
>> first level. Rockridge or ISO CDs are ok.
>> [Please do not change anything below this line]
>> -----------------------------------------------------------------
>> ---
>> Flags:
>>     category=core
>>     severity=low
>> ---
>> Site configuration information for perl v5.6.0:
>>
>> Configured by prospector at Mon Aug  7 10:58:30 EDT 2000.
>>
>> Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
>>   Platform:
>>     osname=linux, osvers=2.2.5-22smp, archname=i386-linux
>>     uname='linux porky.devel.redhat.com 2.2.5-22smp #1 smp wed
>> jun 2 09:11:51 edt 1999 i686 unknown '
>>     config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686
>> -Dcc=gcc -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr
>> -Darchname=i386-linux -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm
>> -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Uuselargefiles'
>>     hint=recommended, useposix=true, d_sigaction=define
>>     usethreads=undef use5005threads=undef useithreads=undef
>> usemultiplicity=undef
>>     useperlio=undef d_sfio=undef uselargefiles=undef
>>     use64bitint=undef use64bitall=undef uselongdouble=undef
usesocks=undef
>>   Compiler:
>>     cc='gcc', optimize='-O2 -march=i386 -mcpu=i686',
>> gccversion=2.96 20000731 (experimental)
>>     cppflags='-fno-strict-aliasing'
>>     ccflags ='-fno-strict-aliasing'
>>     stdchar='char', d_stdstdio=define, usevfork=false
>>     intsize=4, longsize=4, ptrsize=4, doublesize=8
>>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
>>     ivtype='long', ivsize=4, nvtype='double', nvsize=8,
>> Off_t='off_t', lseeksize=4
>>     alignbytes=4, usemymalloc=n, prototype=define
>>   Linker and Libraries:
>>     ld='gcc', ldflags =' -L/usr/local/lib'
>>     libpth=/usr/local/lib /lib /usr/lib
>>     libs=-lnsl -ldl -lm -lc -lcrypt
>>     libc=/lib/libc-2.1.92.so, so=so, useshrplib=false, libperl=libperl.a
>>   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.6.0:
>>     /usr/lib/perl5/5.6.0/i386-linux
>>     /usr/lib/perl5/5.6.0
>>     /usr/lib/perl5/site_perl/5.6.0/i386-linux
>>     /usr/lib/perl5/site_perl/5.6.0
>>     /usr/lib/perl5/site_perl
>>     .
>>
>> ---
>> Environment for perl v5.6.0:
>>     HOME=/home/torsten
>>     LANG=de_DE
>>     LANGUAGE (unset)
>>     LD_LIBRARY_PATH (unset)
>>     LOGDIR (unset)
>>
>> PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
>> :/home/torsten/bin
>>     PERL_BADLANG (unset)
>>     SHELL=/bin/bash
>>
>> ---
>> Site configuration information for perl 5.00503:
>>
>> Configured by root at Wed Feb  2 15:34:50 EST 2000.
>>
>> Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
>>   Platform:
>>     osname=linux, osvers=2.2.5-22smp, archname=i386-linux
>>     uname='linux porky.devel.redhat.com 2.2.5-22smp #1 smp wed
>> jun 2 09:11:51 edt 1999 i686 unknown '
>>     hint=recommended, useposix=true, d_sigaction=define
>>     usethreads=undef useperlio=undef d_sfio=undef
>>   Compiler:
>>     cc='cc', optimize='-O2 -m486 -fno-strength-reduce',
>> gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>>     cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
>>     ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
>>     stdchar='char', d_stdstdio=undef, usevfork=false
>>     intsize=4, longsize=4, ptrsize=4, doublesize=8
>>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
>>     alignbytes=4, usemymalloc=n, prototype=define
>>   Linker and Libraries:
>>     ld='cc', ldflags =' -L/usr/local/lib'
>>     libpth=/usr/local/lib /lib /usr/lib
>>     libs=-lnsl -ldl -lm -lc -lposix -lcrypt
>>     libc=, so=so, useshrplib=false, libperl=libperl.a
>>   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 5.00503:
>>     /usr/lib/perl5/5.00503/i386-linux
>>     /usr/lib/perl5/5.00503
>>     /usr/lib/perl5/site_perl/5.005/i386-linux
>>     /usr/lib/perl5/site_perl/5.005
>>     .
>>
>> ---
>> Environment for perl 5.00503:
>>     HOME=/home/torsten
>>     LANG=de
>>     LANGUAGE (unset)
>>     LC_ALL=de_DE
>>     LD_LIBRARY_PATH=:/opt/SYBSasa6/lib
>>     LOGDIR (unset)
>>
>> PATH=.:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/b
>> in:/opt/informix/bin:/opt/SYBSasa6/bin:/opt/kde/bin:/usr/local/bin
>> :/mnt/d/data/projekt/mp3/bin:/usr/local/bin:/home/torsten/bin/vnc_
>> x86_linux_2.0
>>     PERL_BADLANG (unset)
>>     SHELL=/bin/bash
>>





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