[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6208-g9bef3ea
Stephen Gran
steve at lobefin.net
Wed May 12 22:06:34 UTC 2010
The following commit has been merged in the debian/unstable branch:
commit 9bef3ea7d430866316c6f2726b14c96fdc2aaf40
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