develooper Front page | perl.qpsmtpd | Postings from October 2005

[Bug 0.31] Various virus scanning plugins are making messagesexecutable

From:
Charlie Brady
Date:
October 5, 2005 13:46
Subject:
[Bug 0.31] Various virus scanning plugins are making messagesexecutable
Message ID:
Pine.LNX.4.61.0510051640390.3848@e-smith.charlieb.ott.istop.com

This is unnecessary, and possibly unwise:

...
   my $mode = (stat($self->{_spool_dir}))[2];
   if ( $mode & 07077  ) { # must be sharing spool directory with external app
       $self->log(LOGWARN,
         "Changing permissions on file to permit scanner access");
       chmod $mode, $filename;
   }
...

The LOGWARN perhaps should be changed - this warning will show up for 
every single message if it shows up at all, and all it tells is that you 
have some group permissions on the spool directory, so it's not a per 
message warning.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About