List Info

Thread: amavisd-new 2.4.2 and Net::Server 0.94




amavisd-new 2.4.2 and Net::Server 0.94
user name
2006-08-23 20:04:54

> -----Original Message-----
> From: amavis-user-bounceslists.sourceforge.net
[mailto:amavis-user-
> bounceslists.sourceforge.net] On Behalf Of Mark Martinec
> Sent: Wednesday, August 23, 2006 3:55 PM
> To: amavis-userlists.sourceforge.net
> Subject: Re: [AMaViS-user] amavisd-new 2.4.2 and
Net::Server 0.94
> 
> Ryan,
> 
> > I did some digging and found that the problem
originates in a call
to
> > IO:File in line 6781 of amavisd:
> >
> > 6781: } elsif
($fh->open($config_file,'+<')) {
> >
> > If the open mode '+<' is removed, everything
works just fine.  I've
got
> > another version of amavisd (2.3.2) running on an
FC4 box (with
> > IO:File-1.10) and both that line in amavisd and
the open() sub in
> > File.pm look the same.  Anyone have any ideas?
> 
> Perl taint bug rear its ugly head again.
> Try the following workaround:
> 
> --- amavisd~	Tue Jun 27 13:31:56 2006
> +++ amavisd	Wed Aug 23 21:49:52 2006
>  -6776,4 +6776,5 
>      # too late to feel sorry now, but better late then
never.
>      for my $config_file (config_files) {
> +      local($1);  # don't let
IO::Handle::_open_mode_string taint the
$1
> !
>        my($fh) = IO::File->new;
>        my($errn) = lstat($config_file) ? 0 : 0+$!;

Unfortunately, this didn't resolve the issue.  I get same
issue when
running amavisd in debug mode.  Here's the code as it looks
now:

6777 for my $config_file (config_files) {
6778  local($1);  # don't let IO::Handle::_open_mode_string
taint the $1
!
6779  my($fh) = IO::File->new;
6780  my($errn) = lstat($config_file) ? 0 : 0+$!;

ry

> 
> 
> Mark
> 
>
------------------------------------------------------------
------------
-
> Using Tomcat but need to do more? Need to support web
services,
security?
> Get stuff done quickly with pre-integrated technology
to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based
on Apache
Geronimo
>
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> AMaViS-user mailing list
> AMaViS-userlists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amavis-user

> AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
> AMaViS-HowTos:http://www.amavis.org/ho
wto/

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
amavisd-new 2.4.2 and Net::Server 0.94
user name
2006-08-23 23:16:14
Ryan,

> > > 6781: } elsif
($fh->open($config_file,'+<')) {
> > > If the open mode '+<' is removed,
everything works just fine.

> +  local($1); # don't let
IO::Handle::_open_mode_string taint the $1
> Unfortunately, this didn't resolve the issue.  I get
same issue when
> running amavisd in debug mode.  Here's the code as it
looks now:

Can you please try replacing that open() with:

      } elsif ($fh->open($config_file,O_RDWR)) {

You'll also need to declare O_RDWR, e.g. by replacing a
line:
  use IO::File ();
with:
  use IO::File qw(O_RDONLY O_WRONLY O_RDWR O_APPEND O_CREAT
O_EXCL);
shortly after "package Amavis;"

  Mark

------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )