:-)

# diff -u /usr/lib/perl5/vendor_perl/5.8.0/File/MMagic.pm.org 
/usr/lib/perl5/vendor_perl/5.8.0/File/MMagic.pm
--- /usr/lib/perl5/vendor_perl/5.8.0/File/MMagic.pm.org 2002-11-21 
13:23:05.000000000 +0100
+++ /usr/lib/perl5/vendor_perl/5.8.0/File/MMagic.pm     2002-11-21 
13:23:47.000000000 +0100
@@ -351,8 +351,8 @@
     } else {
        my $filename = shift;
        my $fh = new FileHandle;
-        binmode($fh);
        if ($fh->open("< $filename")) {
+               binmode($fh);
            &readMagicHandle($self, $fh);
        } else {
            warn __PACKAGE__ . " couldn't load specified file $filename";


Le Jeudi 21 Novembre 2002 13:42, Buchan Milne a �crit :
> Pascal Cavy wrote:
> > postfix module cannot initialise correctly :
> >
> > #amavis
> >             <snipped>
> > mail|debug
> >         AMAVIS::MTA::Postfix initialized.
> > binmode() on unopened filehandle GEN2 at
> > /usr/lib/perl5/vendor_perl/5.8.0/File/MMagic.pm line 354.
> >
> > in # diff /usr/lib/perl5/vendor_perl/5.8.0/File/MMagic.pm
> > binmode($fh) is called before the file handle is opened.
> >
> >
> > # rpm -qf /usr/lib/perl5/vendor_perl/5.8.0/File/MMagic.pm
> > perl-File-MMagic-1.15-2mdk
> >
> > here is the patch
> > # diff /usr/lib/perl5/vendor_perl/5.8.0/File/MMagic.pm.org
> > /usr/lib/perl5/vendor_perl/5.8.0/File/MMagic.pm
> > 354d353
> > <         binmode($fh);
> > 355a355
> >
> >>              binmode($fh);
> >
> > please review and apply to perl-File-MMagic-1.15-2mdk
>
> Great! I hadn't been able to get amavis-ng to work before 9.0 final.
> Could you send the patch in diff -u format though please?
>
> Regards,
> Buchan

-- 
Pascal
Mayyy thhee souuurcee beee with yaaa, Geeekk !

Reply via email to