mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* extfs/mailfs.in: Quote filename when openning mailbox.
This commit is contained in:
parent
1edcc92829
commit
6fec66eb87
@ -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>
|
2002-12-24 Adam Byrtek <alpha@debian.org>
|
||||||
|
|
||||||
* extfs/apt.in, extfs/dpkg.in: Avoid stat on non-existing file.
|
* extfs/apt.in, extfs/dpkg.in: Avoid stat on non-existing file.
|
||||||
|
@ -125,12 +125,13 @@ exit 1 unless ($#ARGV >= 1);
|
|||||||
$msg_nr=0;
|
$msg_nr=0;
|
||||||
$cmd=shift;
|
$cmd=shift;
|
||||||
$mbox_name=shift;
|
$mbox_name=shift;
|
||||||
$_=`$file $mbox_name`;
|
my $mbox_qname = quotemeta ($mbox_name);
|
||||||
|
$_=`$file $mbox_qname`;
|
||||||
|
|
||||||
if (/gzip/) {
|
if (/gzip/) {
|
||||||
exit 1 unless (open IN, "$zcat $mbox_name|");
|
exit 1 unless (open IN, "$zcat $mbox_qname|");
|
||||||
} elsif (/bzip/) {
|
} elsif (/bzip/) {
|
||||||
exit 1 unless (open IN, "$bzcat $mbox_name|");
|
exit 1 unless (open IN, "$bzcat $mbox_qname|");
|
||||||
} else {
|
} else {
|
||||||
exit 1 unless (open IN, "<$mbox_name");
|
exit 1 unless (open IN, "<$mbox_name");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user