Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 382756 Details for
Bug 519732
net-proxy/dansguardian-2.12.03-r2 fails to upload
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for the dansguardian code
dg.maxuploadsize.patch (text/plain), 1.72 KB, created by
Michael Stowe
on 2014-08-12 14:23:24 UTC
(
hide
)
Description:
Patch for the dansguardian code
Filename:
MIME Type:
Creator:
Michael Stowe
Created:
2014-08-12 14:23:24 UTC
Size:
1.72 KB
patch
obsolete
>diff -rub dansguardian-2.12.0.3/src/FOptionContainer.cpp dansguardian-2.12.0.3/src/FOptionContainer.cpp >--- 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 dansguardian-2.12.0.3/src/OptionContainer.cpp dansguardian-2.12.0.3/src/OptionContainer.cpp >--- 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. >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 519732
: 382756 |
382758