summaryrefslogtreecommitdiff
path: root/mail/vpopmail-devel/files/patch-vlimits.c
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2002-11-02 21:33:09 +0000
committerPeter Pentchev <roam@FreeBSD.org>2002-11-02 21:33:09 +0000
commitaa47b1121dc049024db4b375fc8c9b8d0e7ecb33 (patch)
treeaee28ec00f8d32f7a49abb6f9bf9a0c8b3d238da /mail/vpopmail-devel/files/patch-vlimits.c
parentIssue a patch release 20021103, which fixes a bug where pkgdb -F (diff)
Update the checksum to match the "new" distfile.
Submitted by: gerald <gerald@hannibal.symicon.com> - the original notification about the vpopmail distfile checksum change Fix a possible buffer underflow bug in the changed code. Add a new ENABLE_MYSQL_LIMITS knob for .qmailadmin-limits processing, and DISABLE the new MySQL limits code - it does not even compile as shipped :( Use the correct configure script option for specifying the path to the tcprules program, so vpopmail works even with LOCALBASE != /usr/local. Submitted by: Mike Meyer <mwm@mired.org> - the tcprules patch
Notes
Notes: svn path=/head/; revision=69307
Diffstat (limited to 'mail/vpopmail-devel/files/patch-vlimits.c')
-rw-r--r--mail/vpopmail-devel/files/patch-vlimits.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/mail/vpopmail-devel/files/patch-vlimits.c b/mail/vpopmail-devel/files/patch-vlimits.c
new file mode 100644
index 000000000000..f784777116d4
--- /dev/null
+++ b/mail/vpopmail-devel/files/patch-vlimits.c
@@ -0,0 +1,29 @@
+--- vlimits.c.orig Sat Nov 2 22:39:03 2002
++++ vlimits.c Sat Nov 2 22:41:10 2002
+@@ -49,7 +49,7 @@
+
+ /* get filename */
+ vget_assign(domain, dir, sizeof(dir), &uid, &gid);
+- strncat(dir, "/.qmailadmin-limits", sizeof(dir));
++ strncat(dir, "/.qmailadmin-limits", sizeof(dir) - strlen(dir) - 1);
+
+ /* open file */
+ if ((fs = fopen(dir, "r")) != NULL) {
+@@ -143,7 +143,7 @@
+
+ /* get filename */
+ vget_assign(domain, dir, sizeof(dir), &uid, &gid);
+- strncat(dir, "/.qmailadmin-limits", sizeof(dir));
++ strncat(dir, "/.qmailadmin-limits", sizeof(dir) - strlen(dir) - 1);
+
+ /* open file */
+ if ((fs = fopen(dir, "w+")) != NULL) {
+@@ -183,7 +183,7 @@
+
+ /* get filename */
+ vget_assign(domain, dir, sizeof(dir), &uid, &gid);
+- strncat(dir, "/.qmailadmin-limits", sizeof(dir));
++ strncat(dir, "/.qmailadmin-limits", sizeof(dir) - strlen(dir) - 1);
+ return unlink(dir);
+ }
+