RE: [Qmail-scanner-general]hostname call

2004-02-03 Thread Dallas L. Engelken
> -Original Message- > From: Doug Monroe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 03, 2004 5:13 PM > To: [EMAIL PROTECTED] > Subject: Re: [Qmail-scanner-general]hostname call > > > Dallas L. Engelken wrote: > > > > you call open(

Re: [Qmail-scanner-general]hostname call

2004-02-03 Thread Doug Monroe
Dallas L. Engelken wrote: > you call open() expensive! I said -relatively- expensive, relative to hard coded. Just my 2 cents of input anyway, no need to get testy. --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Op

RE: [Qmail-scanner-general]hostname call

2004-02-03 Thread Dallas L. Engelken
> > Jason Haar wrote: > > > On Tue, Feb 03, 2004 at 08:44:08AM -0600, Dallas L. Engelken wrote: > > > >># HOSTNAME GRABBED DYNAMICALLY open(ME,"/var/qmail/control/me"); > >>flock(ME,2); > >>my $temphost=; > >>close(ME); > > > > > > Care to explain the need of a flock? Seems to me you could >

Re: [Qmail-scanner-general]hostname call

2004-02-03 Thread Doug Monroe
Jason Haar wrote: On Tue, Feb 03, 2004 at 08:44:08AM -0600, Dallas L. Engelken wrote: # HOSTNAME GRABBED DYNAMICALLY open(ME,"/var/qmail/control/me"); flock(ME,2); my $temphost=; close(ME); Care to explain the need of a flock? Seems to me you could be making things worse with that. After all, i

RE: [Qmail-scanner-general]hostname call

2004-02-03 Thread Dallas L. Engelken
> -Original Message- > From: Jason Haar [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 03, 2004 2:53 PM > To: [EMAIL PROTECTED] > Subject: Re: [Qmail-scanner-general]hostname call > > > On Tue, Feb 03, 2004 at 08:44:08AM -0600, Dallas L. Engelken wrote

Re: [Qmail-scanner-general]hostname call

2004-02-03 Thread Jason Haar
On Tue, Feb 03, 2004 at 08:44:08AM -0600, Dallas L. Engelken wrote: > # HOSTNAME GRABBED DYNAMICALLY > open(ME,"/var/qmail/control/me"); > flock(ME,2); > my $temphost=; > close(ME); Care to explain the need of a flock? Seems to me you could be making things worse with that. After all, it is read-o

RE: [Qmail-scanner-general]hostname call

2004-02-03 Thread Dallas L. Engelken
> -Original Message- > From: Jason Haar [mailto:[EMAIL PROTECTED] > Sent: Monday, February 02, 2004 5:36 PM > To: [EMAIL PROTECTED] > Subject: Re: [Qmail-scanner-general]hostname call > > > On Tue, Jan 27, 2004 at 10:49:49AM +, Mark Powell wrote: > >

Re: [Qmail-scanner-general]hostname call

2004-02-02 Thread Jason Haar
On Tue, Jan 27, 2004 at 10:49:49AM +, Mark Powell wrote: > Hi, > Is there any reason that the hostname cannot be discovered with: > > use Sys::Hostname; > my $hostname = hostname; > > rather than being hardcoded. When a new virus comes along (like ClamAV's Unfortunately, "use Sys::Hostname

Re: [Qmail-scanner-general]hostname call

2004-01-28 Thread Mark Powell
On Wed, 28 Jan 2004, Dean Mumby wrote: > Can I simply add ,'Worm.SCO.A' to the qmail-scanner.pl file Yes. You need to add it to the silent_viruses_array, like this: my @silent_viruses_array=('klez','bugbear','hybris','yaha','braid','nimda','tanatos','sobig','winevar','palyh','fizzer','gibe','c

Re: [Qmail-scanner-general]hostname call

2004-01-28 Thread Dean Mumby
Mark Powell wrote: Hi, Is there any reason that the hostname cannot be discovered with: use Sys::Hostname; my $hostname = hostname; rather than being hardcoded. When a new virus comes along (like ClamAV's Worm.SCO.A today) that I have to add to @silent_viruses_array, it's a pain when duplicating

[Qmail-scanner-general]hostname call

2004-01-27 Thread Mark Powell
Hi, Is there any reason that the hostname cannot be discovered with: use Sys::Hostname; my $hostname = hostname; rather than being hardcoded. When a new virus comes along (like ClamAV's Worm.SCO.A today) that I have to add to @silent_viruses_array, it's a pain when duplicating this to other mac