Add patch to call cyr_quota.

quota was renamed to cyr_quota ages ago.  One place in the imap code, in
the implementation of the RECONSTRUCT command, will actually exec that
binary and so it must be patched to match.
This commit is contained in:
Jason Tibbitts 2018-06-01 17:37:02 -05:00
parent 40d958330c
commit 3209176e05
2 changed files with 19 additions and 1 deletions

View File

@ -35,8 +35,13 @@ Patch1: patch-cyrus-managesieve-linking
# Fedora-specific patch for the default configuration file
Patch2: patch-cyrus-default-configs
# We rename quota to cyr_quota to avoid a conflict with /usr/bin/quota; one
# place in the source must be patched to match.
Patch3: patch-cyrus-rename-quota
# vzic uses an old makefile that needs hacks to use the proper flags
Patch3: patch-vzic-proper-cflags
Patch4: patch-vzic-proper-cflags
Source10: cyrus-imapd.logrotate
Source11: cyrus-imapd.pam-config

13
patch-cyrus-rename-quota Normal file
View File

@ -0,0 +1,13 @@
diff --git a/imap/imapd.c b/imap/imapd.c
index 586c9ad..efe00fc 100644
--- a/imap/imapd.c
+++ b/imap/imapd.c
@@ -7636,7 +7636,7 @@ static void cmd_reconstruct(const char *tag, const char *name, int recursive)
fclose(stdout);
fclose(stderr);
- ret = snprintf(buf, sizeof(buf), "%s/quota", SBIN_DIR);
+ ret = snprintf(buf, sizeof(buf), "%s/cyr_quota", SBIN_DIR);
if(ret < 0 || ret >= (int) sizeof(buf)) {
/* in child, so fatailing won't disconnect our user */
fatal("quota buffer not sufficiently big", EC_CONFIG);