Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 174127 Details for
Bug 249668
mail-filter/spamassassin-fuzzyocr-3.5.1-r1 - FuzzyOCR O_NONBLOCK Exporter.pm Perl Error
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file
exporter.patch (text/plain), 1.46 KB, created by
VinnieNZ
on 2008-12-03 00:51:17 UTC
(
hide
)
Description:
Patch file
Filename:
MIME Type:
Creator:
VinnieNZ
Created:
2008-12-03 00:51:17 UTC
Size:
1.46 KB
patch
obsolete
>Index: FuzzyOcr.pm >=================================================================== >--- FuzzyOcr.pm (revision 128) >+++ FuzzyOcr.pm (revision 130) >@@ -8,4 +8,6 @@ > use strict; > use warnings; >+use POSIX; >+use Fcntl ':flock'; > use Mail::SpamAssassin; > use Mail::SpamAssassin::Logger; >@@ -17,6 +19,4 @@ > use String::Approx 'adistr'; > use FileHandle; >-use Fcntl ':flock'; >-use POSIX; > > use lib qw(/etc/mail/spamassassin); # Allow placing of FuzzyOcr in siteconfigdir >Index: FuzzyOcr/Misc.pm >=================================================================== >--- FuzzyOcr/Misc.pm (revision 122) >+++ FuzzyOcr/Misc.pm (revision 130) >@@ -9,6 +9,5 @@ > use FuzzyOcr::Logging qw(debuglog errorlog warnlog infolog); > use Time::HiRes qw( gettimeofday tv_interval ); >-use POSIX qw(WIFEXITED WIFSIGNALED WIFSTOPPED WEXITSTATUS WTERMSIG WSTOPSIG >- O_RDONLY O_WRONLY O_RDWR O_APPEND O_CREAT O_EXCL); >+use POSIX qw(WIFEXITED WIFSIGNALED WIFSTOPPED WEXITSTATUS WTERMSIG WSTOPSIG); > > # Provide some misc helper functions >@@ -71,6 +70,6 @@ > my($flags) = 0; my($mode) = 0640; > $fname =~ s/^< *//; >- $fname =~ s/^>> *// and $flags |= O_CREAT|O_WRONLY|O_APPEND; >- $fname =~ s/^> *// and $flags |= O_CREAT|O_WRONLY; >+ $fname =~ s/^>> *// and $flags |= POSIX::O_CREAT|POSIX::O_WRONLY|POSIX::O_APPEND; >+ $fname =~ s/^> *// and $flags |= POSIX::O_CREAT|POSIX::O_WRONLY; > POSIX::close($fd_target); # ignore error, we may have just closed a log > my($fd_got) = POSIX::open($fname,$flags,$mode); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 249668
:
174125
| 174127