Bug#321085: Mail::Box lock file sometimes put in current working dir with lock method multi

Rainer Schöpf rainer.schoepf at proteosys.com
Wed Aug 3 11:02:08 UTC 2005


Package: libmail-box-perl
Version: 2.055-1
Severity: important

Under certain conditions (see below), Mail::Box creates a folder lock
file called -- in the current directory. This is not only completely
useless, but it also fails to remove it if the current working dir is
changed between folder open and close (since it tries to remove "./--").

I'm aware that the documentation says that you _must_ specify a lockfile
name. However, if I do not give a full pathname, it is still interpreted
relative to the current dir, resulting in a "cannot unlink" message when
the folder is closed.

How to reproduce: 

my $mgr    = Mail::Box::Manager->new;
my $folder = $mgr->open(folder => $filename,
                        access => "rw",
			lock_file => "mylock",
			lock_type => "Multi");


Suggestions: 
a) produce an error during folder open if the lock file name is
still "--" to protect against the missing lock_file option.
b) convert the name into a full path before creating the lock file.

 Rainer Schöpf

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)

Versions of packages libmail-box-perl depends on:
ii  libdigest-hmac-perl           1.01-3     create standard message integrity 
ii  libio-stringy-perl            2.110-1    Perl5 modules for IO from scalars 
ii  libmailtools-perl             1.62-1     Manipulate email in perl programs
ii  libmime-types-perl            1.15-1     Perl extension for determining MIM
ii  libobject-realize-later-perl  0.15-3     Delayed creation of objects
ii  libtimedate-perl              1.1600-4   Time and date functions for Perl
ii  liburi-perl                   1.35-1     Manipulates and accesses URI strin
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 
ii  perl-base [libscalar-list-uti 5.8.4-8    The Pathologically Eclectic Rubbis

-- no debconf information




More information about the pkg-perl-maintainers mailing list