[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/lenny-volatile, updated. debian/0.95+dfsg-1-6254-g3733304

Stephen Gran steve at lobefin.net
Wed May 12 22:06:25 UTC 2010


The following commit has been merged in the debian/lenny-volatile branch:
commit 37333043fd3745261c8f811239691624bd51127c
Author: Stephen Gran <steve at lobefin.net>
Date:   Wed May 12 23:04:04 2010 +0100

    apparently 0 is a valid value.  Just be careful to only add M to the string if > 0 (closes: #581408)
    
    Signed-off-by: Stephen Gran <steve at lobefin.net>

diff --git a/debian/clamav-base.postinst.in b/debian/clamav-base.postinst.in
index 6d31e2d..32fef75 100644
--- a/debian/clamav-base.postinst.in
+++ b/debian/clamav-base.postinst.in
@@ -140,7 +140,7 @@ case "$1" in
     db_get clamav-base/MaxConnectionQueueLength || true
     maxconnQleng="$RET"
     db_get clamav-base/StreamMaxLength || true
-    [ "$RET" != "0" ] && streamsavelength="$RET"
+    streamsavelength="$RET"
     db_metaget clamav-base/LogSyslog value || true
     logsyslog="$RET"
     db_get clamav-base/LogFile || true
@@ -269,7 +269,6 @@ FollowFileSymlinks $followfilesyms
 ReadTimeout $readtimeout
 MaxThreads $maxthreads
 MaxConnectionQueueLength $maxconnQleng
-StreamMaxLength ${streamsavelength}M
 LogSyslog $logsyslog
 LogFacility $LogFacility
 LogClean $LogClean
@@ -314,6 +313,13 @@ StructuredSSNFormatStripped $StructuredSSNFormatStripped
 EOF
     fi
 
+
+    if [ -n "$streamsavelength" ]; then
+      if [ "$streamsavelength" -gt 0 ] ;then
+        streamsavelength="${streamsavelength}M"
+      fi
+      echo "StreamMaxLength $streamsavelength" >> $DEBCONFFILE
+    fi
     if [ -n "$IncludePUA" ]; then
       for i in $IncludePUA; do
         echo "IncludePUA $i" >> $DEBCONFFILE

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list