From a545f88e402a62d1b90a929b0e6622ae6eeeb143 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 3 Jun 2014 12:29:23 +0200 Subject: [PATCH] squidclamav: fix warning page delivery. The page reside on the ipfire not on the clients so only rewrite-url can used. --- lfs/squidclamav | 4 ++-- .../squidclamav-5.11-squid-helper-protocol.patch | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lfs/squidclamav b/lfs/squidclamav index 263826f84..697b59ab0 100644 --- a/lfs/squidclamav +++ b/lfs/squidclamav @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007 Michael Tremer & Christian Schmidt # +# Copyright (C) 2007-2014 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = squidclamav -PAK_VER = 18 +PAK_VER = 19 DEPS = "clamav" diff --git a/src/patches/squidclamav-5.11-squid-helper-protocol.patch b/src/patches/squidclamav-5.11-squid-helper-protocol.patch index 0bdb21bde..e64bcafef 100644 --- a/src/patches/squidclamav-5.11-squid-helper-protocol.patch +++ b/src/patches/squidclamav-5.11-squid-helper-protocol.patch @@ -1,6 +1,6 @@ -diff -Nur squidclamav-5.11-vanilla/src/squidclamav.c squidclamav-5.11/src/squidclamav.c ---- squidclamav-5.11-vanilla/src/squidclamav.c 2012-10-29 09:46:06.000000000 +0100 -+++ squidclamav-5.11/src/squidclamav.c 2014-06-02 15:19:05.463465297 +0200 +diff -Naur squidclamav-5.11.org/src/squidclamav.c squidclamav-5.11/src/squidclamav.c +--- squidclamav-5.11.org/src/squidclamav.c 2012-10-29 09:46:06.000000000 +0100 ++++ squidclamav-5.11/src/squidclamav.c 2014-06-03 12:26:36.215696508 +0200 @@ -483,7 +483,7 @@ aren't appropriate, then just echo back the line from stdin */ if (buff_status == 1) { @@ -61,7 +61,7 @@ diff -Nur squidclamav-5.11-vanilla/src/squidclamav.c squidclamav-5.11/src/squidc } - fprintf (stdout, "%s %s %s %s\n", urlredir, - in_buff.src_address, in_buff.ident, in_buff.method); -+ fprintf (stdout, "OK status=302 url=\"%s\"\n", urlredir); ++ fprintf (stdout, "OK rewrite-url=\"%s\"\n", urlredir); fflush(stdout); xfree(urlredir); if (debug != 0) @@ -170,7 +170,7 @@ diff -Nur squidclamav-5.11-vanilla/src/squidclamav.c squidclamav-5.11/src/squidc } - fprintf (stdout, "%s %s %s %s\n", urlredir, - in_buff.src_address, in_buff.ident, in_buff.method); -+ fprintf (stdout, "OK status=302 url=\"%s\"\n", urlredir); ++ fprintf (stdout, "OK rewrite-url=\"%s\"\n", urlredir); fflush(stdout); xfree(urlredir); if (debug != 0) -- 2.39.2