FreeBSD Bugzilla – Attachment 77139 Details for
Bug 111130
[security/clamav] clamav-milter rc script have hardcoded timeout for waiting clamd
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-rc_clamav-milter
patch-rc_clamav-milter (text/plain), 937 bytes, created by
Denis Eremenko <moonshade@pnhz.kz>
on 2007-04-02 09:20:05 UTC
(
hide
)
Description:
patch-rc_clamav-milter
Filename:
MIME Type:
Creator:
Denis Eremenko <moonshade@pnhz.kz>
Created:
2007-04-02 09:20:05 UTC
Size:
937 bytes
patch
obsolete
>--- clamav-milter.orig Wed Mar 28 15:35:56 2007 >+++ clamav-milter Wed Mar 28 17:09:35 2007 >@@ -35,11 +35,23 @@ > rm "$clamav_milter_socket" > fi > rc_flags="--pidfile ${pidfile} ${flags:-$clamav_milter_flags} $clamav_milter_socket" >- for a in 1 2 3 4 5 6 7 8 9 10 >+ >+ echo -n "Waiting for clamd socket.. " >+ i=${clamav_milter_socktimeout} >+ while [ $i -ne 0 ] > do > [ -S "$clamav_clamd_socket" ] && break >+ if [ `expr $i % 10` -eq 0 ]; then >+ echo -n "${i}.. " >+ fi > sleep 1 >+ i=$(($i-1)) > done >+ echo >+ if [ $i -eq 0 ]; then >+ echo "There is no clamd socket (${clamav_clamd_socket})!" >+ exit 1 >+ fi > } > > # read settings, set default values >@@ -48,5 +60,6 @@ > : ${clamav_milter_socket="/var/run/clamav/clmilter.sock"} > : ${clamav_clamd_socket="/var/run/clamav/clamd"} > : ${clamav_milter_flags="--postmaster-only --local --outgoing --timeout=0 --max-children=50"} >+: ${clamav_milter_socktimeout="60"} > > run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 111130
: 77139