Projects
Kolab:3.4
cyrus-imapd
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 122
View file
cyrus-imapd.spec
Changed
@@ -68,8 +68,7 @@ ## Patch0001: cyrus-imapd-2.5-ctl_mboxlist-mbtype.patch -Patch0002: cyrus-imapd-2.5-cyr_info-defaults.patch -Patch0003: working-diff.patch +Patch0002: working-diff.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) @@ -262,7 +261,6 @@ %patch0001 -p1 %patch0002 -p1 -%patch0003 -p1 %if 0%{?with_bdb} < 1 sed -i -e 's/,berkeley//g' cunit/db.testc
View file
cyrus-imapd-2.5-cyr_info-defaults.patch
Deleted
@@ -1,234 +0,0 @@ -commit 69ee89675d5ff3e1d73a9189a5ceb967c09357a9 -Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> -Date: Thu Nov 13 23:51:37 2014 +0100 - - [cyr_info]: Add a command that lists the defaults - -diff --git a/imap/cyr_info.c b/imap/cyr_info.c -index f179025..ccacded 100644 ---- a/imap/cyr_info.c -+++ b/imap/cyr_info.c -@@ -53,7 +53,6 @@ - - #include "global.h" - #include "exitcodes.h" --#include "libcyr_cfg.h" - #include "proc.h" - #include "util.h" - #include "../master/masterconf.h" -@@ -77,10 +76,11 @@ static void usage(void) - fprintf(stderr, "\n"); - fprintf(stderr, "Where command is one of:\n"); - fprintf(stderr, "\n"); -- fprintf(stderr, " * proc - listing of all open processes\n"); -- fprintf(stderr, " * allconf - listing of all config values\n"); -- fprintf(stderr, " * conf - listing of non-default config values\n"); -- fprintf(stderr, " * lint - unknown config keys\n"); -+ fprintf(stderr, " * conf-all - listing of all config values\n"); -+ fprintf(stderr, " * conf - listing of non-default config values\n"); -+ fprintf(stderr, " * conf-defaults - listing of all default config values\n"); -+ fprintf(stderr, " * conf-lint - unknown config keys\n"); -+ fprintf(stderr, " * proc - listing of all open processes\n"); - cyrus_done(); - exit(-1); - } -@@ -119,66 +119,71 @@ static void do_conf(int only_changed) - - for (i = 1; i < IMAPOPT_LAST; i++) { - switch (imapopts[i].t) { -- case OPT_STRING: -- case OPT_STRINGLIST: -- if (only_changed) { -- const char *defvalue = imapopts[i].def.s; -- char *freeme = NULL; -- -- if (defvalue && -- !strncasecmp(defvalue, "{configdirectory}", 17)) -- { -- freeme = strconcat(imapopts[IMAPOPT_CONFIGDIRECTORY].val.s, -- defvalue+17, (char *)NULL); -- defvalue = freeme; -+ case OPT_BITFIELD: -+ if (only_changed) { -+ if (imapopts[i].def.x == imapopts[i].val.x) break; - } -- if (!strcmpsafe(defvalue, imapopts[i].val.s)) { -- free(freeme); -- break; -+ printf("%s:", imapopts[i].optname); -+ for (j = 0; imapopts[i].enum_options[j].name; j++) { -+ if (imapopts[i].val.x & (1<<j)) { -+ printf(" %s", imapopts[i].enum_options[j].name); -+ } - } -- free(freeme); -- } -- printf("%s: %s\n", imapopts[i].optname, imapopts[i].val.s ? imapopts[i].val.s : ""); -- break; -- case OPT_INT: -- if (only_changed) { -- if (imapopts[i].def.i == imapopts[i].val.i) break; -- } -- printf("%s: %ld\n", imapopts[i].optname, imapopts[i].val.i); -- break; -- case OPT_SWITCH: -- if (only_changed) { -- if (imapopts[i].def.b == imapopts[i].val.b) break; -- } -- printf("%s: %s\n", imapopts[i].optname, imapopts[i].val.b ? "yes" : "no"); -- break; -- case OPT_ENUM: -- if (only_changed) { -- if (imapopts[i].def.e == imapopts[i].val.e) break; -- } -- printf("%s:", imapopts[i].optname); -- for (j = 0; imapopts[i].enum_options[j].name; j++) { -- if (imapopts[i].val.e == imapopts[i].enum_options[j].val) { -- printf(" %s", imapopts[i].enum_options[j].name); -- break; -+ printf("\n"); -+ break; -+ -+ case OPT_ENUM: -+ if (only_changed) { -+ if (imapopts[i].def.e == imapopts[i].val.e) break; - } -- } -- printf("\n"); -- break; -- case OPT_BITFIELD: -- if (only_changed) { -- if (imapopts[i].def.x == imapopts[i].val.x) break; -- } -- printf("%s:", imapopts[i].optname); -- for (j = 0; imapopts[i].enum_options[j].name; j++) { -- if (imapopts[i].val.x & (1<<j)) { -- printf(" %s", imapopts[i].enum_options[j].name); -+ printf("%s:", imapopts[i].optname); -+ for (j = 0; imapopts[i].enum_options[j].name; j++) { -+ if (imapopts[i].val.e == imapopts[i].enum_options[j].val) { -+ printf(" %s", imapopts[i].enum_options[j].name); -+ break; -+ } - } -- } -- printf("\n"); -- break; -- default: -- abort(); -+ printf("\n"); -+ break; -+ -+ case OPT_INT: -+ if (only_changed) { -+ if (imapopts[i].def.i == imapopts[i].val.i) break; -+ } -+ printf("%s: %ld\n", imapopts[i].optname, imapopts[i].val.i); -+ break; -+ -+ case OPT_STRING: -+ case OPT_STRINGLIST: -+ if (only_changed) { -+ const char *defvalue = imapopts[i].def.s; -+ char *freeme = NULL; -+ -+ if (defvalue && -+ !strncasecmp(defvalue, "{configdirectory}", 17)) -+ { -+ freeme = strconcat(imapopts[IMAPOPT_CONFIGDIRECTORY].val.s, -+ defvalue+17, (char *)NULL); -+ defvalue = freeme; -+ } -+ if (!strcmpsafe(defvalue, imapopts[i].val.s)) { -+ free(freeme); -+ break; -+ } -+ free(freeme); -+ } -+ printf("%s: %s\n", imapopts[i].optname, imapopts[i].val.s ? imapopts[i].val.s : ""); -+ break; -+ -+ case OPT_SWITCH: -+ if (only_changed) { -+ if (imapopts[i].def.b == imapopts[i].val.b) break; -+ } -+ printf("%s: %s\n", imapopts[i].optname, imapopts[i].val.b ? "yes" : "no"); -+ break; -+ -+ default: -+ abort(); - } - } - -@@ -186,6 +191,55 @@ static void do_conf(int only_changed) - config_foreachoverflowstring(print_overflow, NULL); - } - -+static void do_defconf(void) -+{ -+ int i; -+ unsigned j; -+ -+ /* XXX: this is semi-sorted, but the overflow strings aren't sorted at all */ -+ -+ for (i = 1; i < IMAPOPT_LAST; i++) { -+ switch (imapopts[i].t) { -+ case OPT_BITFIELD: -+ printf("%s:", imapopts[i].optname); -+ for (j = 0; imapopts[i].enum_options[j].name; j++) { -+ if (imapopts[i].def.x & (1<<j)) { -+ printf(" %s", imapopts[i].enum_options[j].name); -+ } -+ } -+ printf("\n"); -+ break; -+ -+ case OPT_ENUM: -+ printf("%s:", imapopts[i].optname); -+ for (j = 0; imapopts[i].enum_options[j].name; j++) { -+ if (imapopts[i].val.e == imapopts[i].enum_options[j].val) { -+ printf(" %s", imapopts[i].enum_options[j].name); -+ break; -+ } -+ } -+ printf("\n"); -+ break; -+ -+ case OPT_INT: -+ printf("%s: %ld\n", imapopts[i].optname, imapopts[i].def.i); -+ break;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.