summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCHTEKK <CHTEKK@localhost>2007-11-26 11:41:15 +0000
committerCHTEKK <CHTEKK@localhost>2007-11-26 11:41:15 +0000
commit21085311cfc40b66c8fc07b58de25c748cc45a3a (patch)
tree9610bc78d37f77dc7831b6c322ee4c46ba374b94
parentRename. (diff)
downloadchtekk-21085311cfc40b66c8fc07b58de25c748cc45a3a.tar.gz
chtekk-21085311cfc40b66c8fc07b58de25c748cc45a3a.tar.bz2
chtekk-21085311cfc40b66c8fc07b58de25c748cc45a3a.zip
Fix mailboxes with quota=0.
svn path=/; revision=67
-rw-r--r--vda/postfix-2.4.6-vda-ng.patch6
1 files 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. */