diff options
author | David Somero <dsomero@hotmail.com> | 2013-01-26 23:12:58 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-02-05 22:40:16 -0600 |
commit | f932c75975bb0322da4f58172b079be04a583ae1 (patch) | |
tree | 811e6d731f0c87363587ce80151848369b2fe089 /network/dansguardian/dg.maxuploadsize.patch | |
parent | 9b9e86c712ce631834585dfa0d0853cef5db404a (diff) | |
download | slackbuilds-f932c75975bb0322da4f58172b079be04a583ae1.tar.gz |
network/dansguardian: Updated for version 2.12.0.3.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/dansguardian/dg.maxuploadsize.patch')
-rw-r--r-- | network/dansguardian/dg.maxuploadsize.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/network/dansguardian/dg.maxuploadsize.patch b/network/dansguardian/dg.maxuploadsize.patch new file mode 100644 index 0000000000..80fad02296 --- /dev/null +++ b/network/dansguardian/dg.maxuploadsize.patch @@ -0,0 +1,36 @@ +diff -rub ../dist/dansguardian-2.12.0.3/src/FOptionContainer.cpp dansguardian-2.12.0.3/src/FOptionContainer.cpp +--- ../dist/dansguardian-2.12.0.3/src/FOptionContainer.cpp Sat Sep 29 22:06:45 2012 ++++ dansguardian-2.12.0.3/src/FOptionContainer.cpp Wed Nov 28 20:05:20 2012 +@@ -304,13 +304,6 @@ + violationbody=""; + + threshold = findoptionI("threshold"); +- // TODO: Implement a "findoptionO" and a version of +- // reality check which uses off_t, for large file support? +- max_upload_size = findoptionI("maxuploadsize"); +- if (!realitycheck(max_upload_size, -1, 0, "maxuploadsize")) { +- return false; +- } // check its a reasonable value +- max_upload_size *= 1024; + + avadmin = findoptionS("avadmin"); + if (avadmin.length()==0) { +diff -rub ../dist/dansguardian-2.12.0.3/src/OptionContainer.cpp dansguardian-2.12.0.3/src/OptionContainer.cpp +--- ../dist/dansguardian-2.12.0.3/src/OptionContainer.cpp Sat Sep 29 22:06:45 2012 ++++ dansguardian-2.12.0.3/src/OptionContainer.cpp Wed Nov 28 20:09:32 2012 +@@ -236,6 +236,15 @@ + mailer = findoptionS("mailer"); + #endif + ++ // TODO: Implement a "findoptionO" and a version of ++ // reality check which uses off_t, for large file support? ++ max_upload_size = findoptionI("maxuploadsize"); ++ if (!realitycheck(max_upload_size, -1, 0, "maxuploadsize")) { ++ return false; ++ } // check its a reasonable value ++ if (max_upload_size > 0) ++ max_upload_size *= 1024; ++ + // the dansguardian.conf and pics files get amalgamated into one + // deque. They are only seperate files for clarity. + |