From 21085311cfc40b66c8fc07b58de25c748cc45a3a Mon Sep 17 00:00:00 2001 From: CHTEKK Date: Mon, 26 Nov 2007 11:41:15 +0000 Subject: Fix mailboxes with quota=0. svn path=/; revision=67 --- vda/postfix-2.4.6-vda-ng.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vda/postfix-2.4.6-vda-ng.patch b/vda/postfix-2.4.6-vda-ng.patch index 6dd32aa..f73fafe 100644 --- a/vda/postfix-2.4.6-vda-ng.patch +++ b/vda/postfix-2.4.6-vda-ng.patch @@ -175,7 +175,7 @@ diff -Nru postfix-2.4.6/src/util/file_limit.c postfix-2.4.6-vda-ng/src/util/file #ifdef SIGXFSZ diff -Nru postfix-2.4.6/src/virtual/mailbox.c postfix-2.4.6-vda-ng/src/virtual/mailbox.c --- postfix-2.4.6/src/virtual/mailbox.c 2006-06-26 14:59:19.000000000 +0200 -+++ postfix-2.4.6-vda-ng/src/virtual/mailbox.c 2007-11-24 13:14:31.000000000 +0100 ++++ postfix-2.4.6-vda-ng/src/virtual/mailbox.c 2007-11-26 12:30:21.000000000 +0100 @@ -70,6 +70,70 @@ #define YES 1 #define NO 0 @@ -222,12 +222,12 @@ diff -Nru postfix-2.4.6/src/virtual/mailbox.c postfix-2.4.6-vda-ng/src/virtual/m + } + } + else if (n == 0) { -+ set_file_limit((off_t) n); ++ set_file_limit(OFF_T_MAX); + status = YES; + + if (msg_verbose) + msg_info("%s: set virtual mailbox limit size for %s to %ld", -+ myname, usr_attr.mailbox, n); ++ myname, usr_attr.mailbox, OFF_T_MAX); + } + else { + /* Invalid limit size (negative). Use default virtual_mailbox_limit. */ -- cgit v1.2.3-65-gdbad