diff options
author | roam <roam@FreeBSD.org> | 2002-11-03 05:33:09 +0800 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2002-11-03 05:33:09 +0800 |
commit | c667cf9391ab8ba58392d4d612351881058ef9d1 (patch) | |
tree | 3c403522bf3090d0f13342d45391d5c67e357660 /mail/vpopmail/files | |
parent | c235fb857952501ae8e1b5958257af96b5cd40d2 (diff) | |
download | freebsd-ports-gnome-c667cf9391ab8ba58392d4d612351881058ef9d1.tar.gz freebsd-ports-gnome-c667cf9391ab8ba58392d4d612351881058ef9d1.tar.zst freebsd-ports-gnome-c667cf9391ab8ba58392d4d612351881058ef9d1.zip |
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
Diffstat (limited to 'mail/vpopmail/files')
-rw-r--r-- | mail/vpopmail/files/patch-vdelivermail.c | 11 | ||||
-rw-r--r-- | mail/vpopmail/files/patch-vlimits.c | 29 | ||||
-rw-r--r-- | mail/vpopmail/files/patch-vmysql.h | 15 |
3 files changed, 55 insertions, 0 deletions
diff --git a/mail/vpopmail/files/patch-vdelivermail.c b/mail/vpopmail/files/patch-vdelivermail.c new file mode 100644 index 000000000000..106281226007 --- /dev/null +++ b/mail/vpopmail/files/patch-vdelivermail.c @@ -0,0 +1,11 @@ +--- vdelivermail.c.orig Sat Nov 2 22:34:39 2002 ++++ vdelivermail.c Sat Nov 2 22:35:20 2002 +@@ -263,7 +263,7 @@ + + /* check for wildcard if there's no match */ + if(tmpstr == NULL) { +- for(i=strlen(TheUser);i >= 0 && j != 1;--i) { ++ for(i=strlen(TheUser);i > 0 && j != 1;--i) { + if(TheUser[i-1]=='-') { + tmpuser[0] = '\0'; + strncat(tmpuser,TheUser,i); diff --git a/mail/vpopmail/files/patch-vlimits.c b/mail/vpopmail/files/patch-vlimits.c new file mode 100644 index 000000000000..f784777116d4 --- /dev/null +++ b/mail/vpopmail/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); + } + diff --git a/mail/vpopmail/files/patch-vmysql.h b/mail/vpopmail/files/patch-vmysql.h new file mode 100644 index 000000000000..347342723a14 --- /dev/null +++ b/mail/vpopmail/files/patch-vmysql.h @@ -0,0 +1,15 @@ +--- vmysql.h.orig Sat Nov 2 23:02:32 2002 ++++ vmysql.h Sat Nov 2 23:06:01 2002 +@@ -250,3 +250,12 @@ + INDEX error_idx (error), INDEX message_idx (message)" + #endif + ++#ifdef ENABLE_MYSQL_LIMITS ++#define LIMITS_TABLE_LAYOUT "id BIGINT PRIMARY KEY AUTO_INCREMENT, \ ++ domain CHAR(64), maxpopaccounts INTEGER, maxaliases INTEGER, \ ++ maxforwards INT, maxautoresponders INT, maxmailinglists INT \ ++ diskquota INT, defaultquota INT, disablepop INT, disableimap INT, \ ++ disabledialup INT, disablepasswordchanging INT, disablewebmail INT, \ ++ disablerelay INT, \ ++ INDEX domain_idx (domain)" ++#endif |