Re: [Clamav-users] Bug in clamdscan/client.c 0.75

2004-07-26 Thread Paul Bijnens
Rob Mangiafico wrote: +peer_size = sizeof(peer); +if(getpeername(sockd, (struct sockaddr *) &peer, &peer_size) < 0) { + perror("getpeername()"); + mprintf("@Can't get socket peer name.\n"); + return -1; +} + +server.sin_addr.s_addr = peer.sin_addr.s_addr; + Comment

Re: [Clamav-users] Bug in clamdscan/client.c 0.75

2004-07-25 Thread Rob Mangiafico
> > +peer_size = sizeof(peer); > > +if(getpeername(sockd, (struct sockaddr *) &peer, &peer_size) < 0) { > > + perror("getpeername()"); > > + mprintf("@Can't get socket peer name.\n"); > > + return -1; > > +} > > + > > +server.sin_addr.s_addr = peer.sin_addr.s_addr;

Re: [Clamav-users] Bug in clamdscan/client.c 0.75

2004-07-23 Thread Christopher X. Candreva
On Fri, 23 Jul 2004, Paul Bijnens wrote: > +peer_size = sizeof(peer); > +if(getpeername(sockd, (struct sockaddr *) &peer, &peer_size) < 0) { > + perror("getpeername()"); > + mprintf("@Can't get socket peer name.\n"); > + return -1; > +} > + > +server.sin_addr.s_ad

[Clamav-users] Bug in clamdscan/client.c 0.75

2004-07-23 Thread Paul Bijnens
In clamdscan/client.c this was changed in 0.75: @@ -129,6 +131,15 @@ server.sin_family = AF_INET; server.sin_port = htons(port); +peer_size = sizeof(peer); +if(getpeername(sockd, (struct sockaddr *) &peer, &peer_size) < 0) { + perror("getpeername()"); + mprintf("@Can'

Re: [Clamav-users] bug in clamdscan

2004-06-22 Thread Dan Egli
Tomasz Kojm wrote: On Mon, 21 Jun 2004 14:04:23 -0600 Dan Egli <[EMAIL PROTECTED]> wrote: Phil Ershler wrote: It was when I composed this message. I just couldn't get connected to a network until this morning. I was really quite serious. If you want to make a contribution, contact the the Clamav t

Re: [Clamav-users] bug in clamdscan

2004-06-22 Thread Tomasz Kojm
On Mon, 21 Jun 2004 14:04:23 -0600 Dan Egli <[EMAIL PROTECTED]> wrote: > Phil Ershler wrote: > > It was when I composed this message. I just couldn't get connected > > to a network until this morning. I was really quite serious. If you > > want to make a contribution, contact the the Clamav team.

Re: [Clamav-users] bug in clamdscan

2004-06-21 Thread Lee W
Dan Egli wrote: Phil Ershler wrote: It was when I composed this message. I just couldn't get connected to a network until this morning. I was really quite serious. If you want to make a contribution, contact the the Clamav team. Phil I would if I could code in C. I cann't do C to save my life.

Re: [Clamav-users] bug in clamdscan

2004-06-21 Thread Dan Egli
Phil Ershler wrote: It was when I composed this message. I just couldn't get connected to a network until this morning. I was really quite serious. If you want to make a contribution, contact the the Clamav team. Phil I would if I could code in C. I cann't do C to save my life. It has always be

Re: [Clamav-users] bug in clamdscan

2004-06-21 Thread Phil Ershler
It was when I composed this message. I just couldn't get connected to a network until this morning. I was really quite serious. If you want to make a contribution, contact the the Clamav team. Phil On Jun 21, 2004, at 1:35 PM, Dan Egli wrote: Philip Ershler wrote: If you don't like the software,

Re: [Clamav-users] bug in clamdscan

2004-06-21 Thread Dan Egli
Philip Ershler wrote: If you don't like the software, and are unhappy about how much you paid for it, contact the Clamav team and ask for a job. Just my 2 cents. Phil First, it was just a suggestion! Second, Fix your clock! It's not 11 pm Sunday! -- -- Dan ---

Re: [Clamav-users] bug in clamdscan

2004-06-21 Thread Philip Ershler
If you don't like the software, and are unhappy about how much you paid for it, contact the Clamav team and ask for a job. Just my 2 cents. Phil On Jun 20, 2004, at 10:25 PM, Dan Egli wrote: Fajar A. Nugraha wrote: Dan Egli wrote: [EMAIL PROTECTED] root]# clamdscan $PWD /root: Can't access the fi

Re: [Clamav-users] bug in clamdscan

2004-06-21 Thread Matt
> >> > > ERROR is not a file name :) > > It's the scanning result : ERROR, which is not OK. > > > > so redo the message. It looks like a file name. > > change /root: Can't access the file ERROR > to > ERROR: cannot access the file /root > > Simple! > > Or even: > > scanning /root: Can't ac

Re: [Clamav-users] bug in clamdscan

2004-06-20 Thread Dan Egli
Fajar A. Nugraha wrote: Dan Egli wrote: [EMAIL PROTECTED] root]# clamdscan $PWD /root: Can't access the file ERROR Ok, clamd was running as clamav (I never know what daemons maintain the 0 uid and which ones call set_uid()). But my above question stands. Where is this ERROR file coming from? E

Re: [Clamav-users] bug in clamdscan

2004-06-20 Thread Fajar A. Nugraha
Dan Egli wrote: [EMAIL PROTECTED] root]# clamdscan $PWD /root: Can't access the file ERROR Ok, clamd was running as clamav (I never know what daemons maintain the 0 uid and which ones call set_uid()). But my above question stands. Where is this ERROR file coming from? ERROR is not a file name

Re: [Clamav-users] bug in clamdscan

2004-06-20 Thread Dan Egli
Jeremy Kitchen wrote: On Saturday 19 June 2004 12:14 pm, Dan Egli wrote: but I cannot scan a DIR either. [EMAIL PROTECTED] root]# clamdscan $PWD /root: Can't access the file ERROR $5 says your clamd is not running as root. therefore, it doesn't (hopefully) have access to read root's home direct

Re: [Clamav-users] bug in clamdscan

2004-06-20 Thread Jeremy Kitchen
On Saturday 19 June 2004 12:14 pm, Dan Egli wrote: > but I cannot scan a DIR either. > > [EMAIL PROTECTED] root]# clamdscan $PWD > /root: Can't access the file ERROR $5 says your clamd is not running as root. therefore, it doesn't (hopefully) have access to read root's home directory. -Jeremy

Re: [Clamav-users] bug in clamdscan

2004-06-20 Thread Dan Egli
Steven Stern wrote: On Sun, 20 Jun 2004 10:42:26 -0600, Dan Egli <[EMAIL PROTECTED]> wrote: But Mr. Stern was saying Working-As-Designed and I'm just saying Working-As-Designed makes no sense. If it's a bug then ok, it's a bug. I can understand that and forgive quite easily. "As designed" may

Re: [Clamav-users] bug in clamdscan

2004-06-20 Thread Steven Stern
On Sun, 20 Jun 2004 10:42:26 -0600, Dan Egli <[EMAIL PROTECTED]> wrote: > But Mr. Stern was >saying Working-As-Designed and I'm just saying Working-As-Designed makes >no sense. If it's a bug then ok, it's a bug. I can understand that and >forgive quite easily. "As designed" may not be the way

Re: [Clamav-users] bug in clamdscan

2004-06-20 Thread Dan Egli
Jeff Smelser wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 19 June 2004 12:14 pm, Dan Egli wrote: Can someone kindly explain why on earth you would write a scanner that only scans ONE FILE? The whole point of clamdscan is it's supposed to be faster than clamscan because it let's

Re: [Clamav-users] bug in clamdscan

2004-06-19 Thread Christoph Moench-Tegeder
## Steven Stern ([EMAIL PROTECTED]): > The same thing happens in 0.73. Reading the man page, it seems that it is a > WAD. > clamdscan [options] [file/directory] > clamdscan scans one file or one directory tree > clamscan works on multiple files. Have a look at the source :) - clamav-0.73/clamsca

Re: [Clamav-users] bug in clamdscan

2004-06-19 Thread Stephen Gran
On Sat, Jun 19, 2004 at 11:14:35AM -0600, Dan Egli said: > but I cannot scan a DIR either. > > [EMAIL PROTECTED] root]# clamdscan $PWD > /root: Can't access the file ERROR > > --- SCAN SUMMARY --- > Infected files: 0 > Time: 0.001 sec (0 m 0 s) > > > Can someone kindly explain w

Re: [Clamav-users] bug in clamdscan

2004-06-19 Thread Dennis Peterson
Dan Egli wrote: Steven Stern wrote: On Sat, 19 Jun 2004 10:09:48 -0600, Dan Egli <[EMAIL PROTECTED]> wrote: I've encountered this bug a few times: [EMAIL PROTECTED] test]# touch file1 [EMAIL PROTECTED] test]# touch file2 [EMAIL PROTECTED] test]# touch file3 [EMAIL PROTECTED] test]# ls file1 fil

Re: [Clamav-users] bug in clamdscan

2004-06-19 Thread Jeff Smelser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 19 June 2004 12:14 pm, Dan Egli wrote: > Can someone kindly explain why on earth you would write a scanner that > only scans ONE FILE? The whole point of clamdscan is it's supposed to be > faster than clamscan because it let's the daemon d

Re: [Clamav-users] bug in clamdscan

2004-06-19 Thread Dan Egli
Steven Stern wrote: On Sat, 19 Jun 2004 10:09:48 -0600, Dan Egli <[EMAIL PROTECTED]> wrote: I've encountered this bug a few times: [EMAIL PROTECTED] test]# touch file1 [EMAIL PROTECTED] test]# touch file2 [EMAIL PROTECTED] test]# touch file3 [EMAIL PROTECTED] test]# ls file1 file2 file3 [EMAIL P

Re: [Clamav-users] bug in clamdscan

2004-06-19 Thread Steven Stern
On Sat, 19 Jun 2004 10:09:48 -0600, Dan Egli <[EMAIL PROTECTED]> wrote: >I've encountered this bug a few times: > >[EMAIL PROTECTED] test]# touch file1 >[EMAIL PROTECTED] test]# touch file2 >[EMAIL PROTECTED] test]# touch file3 >[EMAIL PROTECTED] test]# ls >file1 file2 file3 >[EMAIL PROTECTED] t

[Clamav-users] bug in clamdscan

2004-06-19 Thread Dan Egli
I've encountered this bug a few times: [EMAIL PROTECTED] test]# touch file1 [EMAIL PROTECTED] test]# touch file2 [EMAIL PROTECTED] test]# touch file3 [EMAIL PROTECTED] test]# ls file1 file2 file3 [EMAIL PROTECTED] test]# clamdscan file1 file2 file3 ERROR: Can't access file file1 file2 file3 fi