Menu

#19 Freebsd x64 patch for c-icap and squiclamav

Unstable_(example)
open
chtsanti
1
2014-05-26
2014-04-19
No

Hello to everyone
Trying to run c-icap with squiclamav under freebsd x64 i found that is not possible.
I made this patch.

--- cfg_param.c.original 2013-10-25 17:59:57.000000000 +0300
+++ cfg_param.c 2014-04-19 17:31:21.000000000 +0300
@@ -77,6 +77,8 @@
int MAX_REQUESTS_PER_CHILD = 0;
int DAEMON_MODE = 1;
int DebugLevelSetFromCmd = 0;
+int CI_BODY_MAX_MEM = 131072;
+char *CI_TMPDIR = "/var/tmp/";

/ txtTemplate stuff /
extern const char TEMPLATE_DIR;
@@ -507,6 +509,7 @@
int cfg_set_tmp_dir(const char
directive, const char argv, void setdata)
{
int len;
+ char
CI_TMPDIR;
if (argv == NULL || argv[0] == NULL) {
return 0;
}

Hope it helps everyone trying to install it on freebsd x64 expecially pfsense users!
Keep going
I really like your work
Lefteris Sarakinos

1 Attachments

Discussion

  • chtsanti

    chtsanti - 2014-04-25

    The patch is not correct. It is just hides the global CI_BODY_MAX_MEM and CI_TMPDIR variables from cfg_param.c file. As a result the MaxMemObject and TmpDir configuration parameters will not work.

     
  • Mathias H

    Mathias H - 2014-05-26

    It may not be proper, but it works! Thank you! I have been having Signal 11's for several versions now...

     

Anonymous
Anonymous

Add attachments
Cancel