Re: [Clamav-devel] paths on clamd.conf and freshclam.conf man pages.

2004-09-26 Thread Tuomo Soini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tomasz Kojm wrote:
|>I attached patch to make configure fix paths on clamd.conf.5 and
|>freshclam.conf.5 man pages but found out that configure has some
|>problems because sysconfdir is set to '${prefix}/etc' by default, not
|>"${prefix}/etc".
Ok. Replacing @sysconfdir@ with @CFGDIR@ in clamav.conf.5.in and
freshclam.conf.5.in should do it. Do you want me to do new patch? My
patch doesn't seem to be in devel yet.
- --
Tuomo Soini <[EMAIL PROTECTED]>
Linux and network services
+358 40 5240030
Foobar Oy 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBVyGVTlrZKzwul1ERArNkAJ9iL/eGbORtA+w+oQ5HyqjNWJUtJwCgsedy
sfB901SyCFKi2ELxEYEZCKo=
=lFgn
-END PGP SIGNATURE-

---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel


[Clamav-devel] Patch for OSX resource fork moving (not scanning)

2004-09-26 Thread Mark Allan
Hi,
I have a patch here which adds support for moving Mac files containing 
resource forks.  It came from Remi Mommsen who is the fink maintainer 
for the Mac OS X version of clamav but I've tested it extensively and 
can fairly safely say it works properly on Mac OS X.  I can not, 
however, vouch for how it affects other build targets.

In its current incarnation, clamscan will strip out the Mac OS resource 
fork from an infected file which can cause many many problems on a Mac. 
 This patch will use 'ditto' to copy the entire file including resource 
forks.

Mark
--- clamav-0.80rc2/clamscan/others.cTue Jun 15 21:45:28 2004
+++ clamav-0.80rc2-patched/clamscan/others.cSun Sep 26 17:39:54 
2004
@@ -115,6 +115,15 @@

 int filecopy(const char *src, const char *dest)
 {
+#ifdef __APPLE_CC__
+/* On Mac OS X use ditto and copy resource fork, too. */
+char *ditto = (char *) mcalloc(strlen(src) + strlen(dest) + 
30, sizeof(char));
+sprintf(ditto,"/usr/bin/ditto --rsrc \"%s\" \"%s\"",src,dest);
+if( system(ditto) ) {
+  mprintf("");   // dummy statement to work around gcc 
optimizer bug
+  return -1;
+}
+#else
char buffer[FILEBUFF];
int s, d, bytes;

@@ -133,6 +142,7 @@
 /* [EMAIL PROTECTED]: check result of close for NFS file */
 return close(d);
+#endif //__APPLE_CC__
 }
 int isnumb(const char *str)

---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel


[Clamav-devel] Option for dummy scan? Option to skip specific file?

2004-09-26 Thread Mark Allan
Hi,
I'm developing clamXav (clamav GUI for Mac OS X) and I was wondering 
two things:

Firstly, could we add an option for a "dummy" scan?  What I mean is to 
have clamscan goes through the process of what it would normally do, 
but not actually perform any scanning?  Basically what I'm after is a 
total number of files/directories to be scanned (un-archiving wouldn't 
be necessary) so that I can provide a progress indicator.

Secondly, is there any option to skip a specific file once it has 
started being scanned?  I know clamscan isn't really designed to be 
interactive, but a key-stroke could allow the user to avoid scanning a 
file which appears to be taking forever.  Maybe control-D or control-X 
or something could abort the current file and just move on to the next 
file due to be scanned.

Any thoughts?
Mark

---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel