RPM for sophie on fedora3
"Patrice Blot" <[email protected]> Wed, 16 Feb 2005 14:38:00 +0100
| Newsgroups | gmane.comp.security.virus.vtools |
|---|---|
| Message-ID | <[email protected]> |
Hi all, According to this patch I did a RPM for fedora3 (user/group to qscand to work with Q-S) Patrice Blot FC-NET > -----Message d'origine----- > De : [email protected] > [mailto:[email protected]] De la part de Patrick Clohessy > Envoyé : vendredi 11 février 2005 08:31 > À : [email protected] > Objet : [vtools] Patch for Sophie - Error: File could not be accessed > > > Hi All > > I was recently re-installing one of my servers with Fedora Core 3 and > noticed a problem with Sophie 3.03 and 3.04rc2. When scanning a > directory it would scan ".." and then recurse through my entire file > system and produce "Error: File could not be accessed". > > Taking a look at the code for sophie_scandir.c shows the following: > > /* Let's get rid of '.' and '..' */ > direntry = readdir(dirpt); > direntry = readdir(dirpt); > > For some reason, which I'm yet to figure out, under Fedora > Core 3 and > possible other OS's (however I can confirm it's fine under > Fedora Core > 1) dirpt doesn't have "." and ".." as the first two elements > as assumed > by the above code. > > I've attached a patch which will check each element to see > whether it's > either "." or ".." and if so to skip it. The code is: > > while ((direntry = readdir(dirpt))) > { > > if((strcmp(direntry->d_name,".")==0)||(strcmp(direntry->d_name > ,"..")==0)) > { > continue; > } > ..... > } > > I have tested this patch with emails containing viruses and > with emails > containing no viruses and it appears to work correctly. > > -- > Patrick Clohessy > Curtin University of Technology > Department of Computing > Tel: +61 8 9266 7817 > email: [email protected] > >