-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I think clamscan could be more verbose when it doesn't able
to open a file.
Attached a simple patch.

Regards
- --
Gianluigi Tiesi <[EMAIL PROTECTED]>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+ae73UE5cRfnO04RAgAWAJ46oZoPjiqaddxORU9MojHGk+wyrACeL81t
JcMREhE+aoj4NNUhDwDzd1o=
=ZlqM
-----END PGP SIGNATURE-----
Index: clamscan/manager.c
===================================================================
--- clamscan/manager.c  (revision 2946)
+++ clamscan/manager.c  (working copy)
@@ -641,7 +641,7 @@
     logg("*Scanning %s\n", filename);
 
     if((fd = open(filename, O_RDONLY|O_BINARY)) == -1) {
-       logg("^Can't open file %s\n", filename);
+       logg("^Can't open file %s, %s\n", filename, strerror(errno));
        return 54;
     }
 
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Reply via email to