diff options
author | CHTEKK <CHTEKK@localhost> | 2007-04-13 19:04:55 +0000 |
---|---|---|
committer | CHTEKK <CHTEKK@localhost> | 2007-04-13 19:04:55 +0000 |
commit | 811ddb538c6819c70876a1d8f1ae61105431772f (patch) | |
tree | 042bf9ae6a035b25a72f8dd04882e20ceea53711 /vda | |
parent | First version. (diff) | |
download | chtekk-811ddb538c6819c70876a1d8f1ae61105431772f.tar.gz chtekk-811ddb538c6819c70876a1d8f1ae61105431772f.tar.bz2 chtekk-811ddb538c6819c70876a1d8f1ae61105431772f.zip |
Ensure those vars are always treated as longs, initialize n for mailbox function too.
svn path=/; revision=28
Diffstat (limited to 'vda')
-rw-r--r-- | vda/postfix-2.4.0-vda-e-chtekk.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vda/postfix-2.4.0-vda-e-chtekk.patch b/vda/postfix-2.4.0-vda-e-chtekk.patch index 0575f22..b27fece 100644 --- a/vda/postfix-2.4.0-vda-e-chtekk.patch +++ b/vda/postfix-2.4.0-vda-e-chtekk.patch @@ -97,7 +97,7 @@ diff -Nru postfix-2.4.0/src/virtual/mailbox.c postfix-2.4.0-vda/src/virtual/mail +{ + char *myname = "change_mailbox_limit"; + const char *limit_res; -+ long n; ++ long n = 0; + int status = NO; + + /* @@ -389,8 +389,8 @@ diff -Nru postfix-2.4.0/src/virtual/maildir.c postfix-2.4.0-vda/src/virtual/mail + continue; + } + if ((statbuf.st_mode & S_IFREG) != 0) { -+ if (strcmp(dirname + strlen(dirname) - 3 , "new") == 0 || strcmp(dirname + strlen(dirname) - 3 , "cur") == 0 || strcmp(dirname + strlen(dirname) - 3 , "tmp") == 0) { -+ sum += statbuf.st_size; ++ if (strcmp(dirname + strlen(dirname) - 3, "new") == 0 || strcmp(dirname + strlen(dirname) - 3, "cur") == 0 || strcmp(dirname + strlen(dirname) - 3, "tmp") == 0) { ++ sum += (long) statbuf.st_size; + (*countptr)++; + } + } else if ((statbuf.st_mode & S_IFDIR) != 0) { |