* extfs/mailfs.in: Quote filename when openning mailbox.

This commit is contained in:
Andrew V. Samoilov 2002-12-24 06:56:16 +00:00
parent 1edcc92829
commit 6fec66eb87
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-12-24 Andrew V. Samoilov <sav@bcs.zp.ua>
* extfs/mailfs.in: Quote filename when openning mailbox.
2002-12-24 Adam Byrtek <alpha@debian.org>
* extfs/apt.in, extfs/dpkg.in: Avoid stat on non-existing file.

View File

@ -125,12 +125,13 @@ exit 1 unless ($#ARGV >= 1);
$msg_nr=0;
$cmd=shift;
$mbox_name=shift;
$_=`$file $mbox_name`;
my $mbox_qname = quotemeta ($mbox_name);
$_=`$file $mbox_qname`;
if (/gzip/) {
exit 1 unless (open IN, "$zcat $mbox_name|");
exit 1 unless (open IN, "$zcat $mbox_qname|");
} elsif (/bzip/) {
exit 1 unless (open IN, "$bzcat $mbox_name|");
exit 1 unless (open IN, "$bzcat $mbox_qname|");
} else {
exit 1 unless (open IN, "<$mbox_name");
}