[Mimedefang] patch for syslog print in copy_or_link
Oliver Schulze L.
oliver at samera.com.py
Wed May 17 09:10:49 EDT 2006
Hi,
I was thinking that MD should report if copy_or_link() failed to create
the hard link. Because it will help detect a performance hit.
HTH
Oliver
--
Oliver Schulze L.
<oliver at samera.com.py>
-------------- next part --------------
--- /tmp/mimedefang.pl 2006-05-17 09:05:54.000000000 -0400
+++ /usr/bin/mimedefang.pl 2006-05-17 09:05:39.000000000 -0400
@@ -276,6 +276,7 @@
return 1 if link($src, $dst);
# Link failed; do it the hard way
+ md_syslog('err', "$MsgID: copy_or_link failed to create hard link in $dst");
open(IN, "<$src") or return 0;
if (!open(OUT, ">$dst")) {
close(IN);
More information about the MIMEDefang
mailing list