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:
parent
40d958330c
commit
3209176e05
@ -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
13
patch-cyrus-rename-quota
Normal 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);
|
Loading…
Reference in New Issue
Block a user