marked grave because it caused me data loss, though someone else may not
suffer the same fate.
If I try to tie an array read only, and the file does not exist, the
file is created (wrong), but the tie fails (right).
If I try to tie an array read only (allowing creation), and the file
does not exist, the file is created (right), but the tie is not read
only (wrong).
If I try to tie an array read only, and the file does exist, the tie
fails with no error (wrong).
If I try to tie an array read only (allowing creation), and the file
does exist, the tie succeeds (right), but the tie is not read only
(wrong).
So, when trying to tie an array read only, I can't...
Versions of packages perl depends on:
ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an
ii libdb4.0 4.0.14-2 Berkeley v4.0 Database Libraries [
ii libgdbm3 1.8.3-2 GNU dbm database routines (runtime
ii perl-base 5.8.3-3 The Pathologically Eclectic Rubbis
ii perl-modules 5.8.3-3 Core Perl modules.
rm -f a
./perlnocreat.pl
ls --full-time a
sleep 1
rm -f a
/perlcreat.pl
ls --full-time a
sleep 1
rm -f a
touch a
/perlnocreat.pl
ls --full-time a
sleep 1
rm -f a
touch a
/perlcreat.pl
ls --full-time a
Message-Id: <E1Be3QU- 0007Cs- 9e@riker>
Date: Fri, 25 Jun 2004 23:00:21 -0400
From: Jayen Ashar <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: has issues with tying read only arrays (DB_File,O_RDONLY)
--===== ======= ===1405697569= = Transfer- Encoding: 7bit Disposition: inline
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-
Content-
Package: perl
Version: 5.8.3-3
Severity: grave
marked grave because it caused me data loss, though someone else may not
suffer the same fate.
If I try to tie an array read only, and the file does not exist, the
file is created (wrong), but the tie fails (right).
If I try to tie an array read only (allowing creation), and the file
does not exist, the file is created (right), but the tie is not read
only (wrong).
If I try to tie an array read only, and the file does exist, the tie
fails with no error (wrong).
If I try to tie an array read only (allowing creation), and the file
does exist, the tie succeeds (right), but the tie is not read only
(wrong).
So, when trying to tie an array read only, I can't...
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.6-1-k7
Locale: LANG=C, LC_CTYPE=C
Versions of packages perl depends on:
ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an
ii libdb4.0 4.0.14-2 Berkeley v4.0 Database Libraries [
ii libgdbm3 1.8.3-2 GNU dbm database routines (runtime
ii perl-base 5.8.3-3 The Pathologically Eclectic Rubbis
ii perl-modules 5.8.3-3 Core Perl modules.
-- no debconf information
--===== ======= ===1405697569= = Transfer- Encoding: 7bit Disposition: attachment; filename= "perlbug. sh"
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-
Content-
rm -f a
./perlnocreat.pl
ls --full-time a
sleep 1
rm -f a
/perlcreat.pl
ls --full-time a
sleep 1
rm -f a
touch a
/perlnocreat.pl
ls --full-time a
sleep 1
rm -f a
touch a
/perlcreat.pl
ls --full-time a
--===== ======= ===1405697569= = Transfer- Encoding: base64 Disposition: attachment; filename= "perlcreat. pl"
Content-Type: application/x-perl
MIME-Version: 1.0
Content-
Content-
IyEvdXNyL2Jpbi9 wZXJsIC13CnVzZS BEQl9GaWxlOwp0a WUgQGEsJ0RCX0Zp bGUnLCdhJyxPX1J E ULDA2MDAsJERCX1 JFQ05PIG9yIHBya W50ICJjb3VsZCBu b3Qgb3BlbiBhOiA k 9J2InOwp1bnRpZS BAYTsK
T05MWXxPX0NSRUF
IVxuIjsKJGFbMF0
--===== ======= ===1405697569= = Transfer- Encoding: base64 Disposition: attachment; filename= "perlnocreat. pl"
Content-Type: application/x-perl
MIME-Version: 1.0
Content-
Content-
IyEvdXNyL2Jpbi9 wZXJsIC13CnVzZS BEQl9GaWxlOwp0a WUgQGEsJ0RCX0Zp bGUnLCdhJyxPX1J E EQl9SRUNOTyBvci BwcmludCAiY291b GQgbm90IG9wZW4g YTogJCFcbiI7CiR h 0aWUgQGE7Cg= =
T05MWSwwNjAwLCR
WzBdPSdiJzsKdW5
--===== ======= ===1405697569= =--