Projects
Kolab:3.4
cyrus-imapd
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 94
View file
cyrus-imapd-2.5.tar.gz/imap/ctl_mboxlist.c
Changed
@@ -215,12 +215,20 @@ } // if (r = dlist_getatom()) if (dl_ace->name && tmp) { - if (acl) { - acl = strconcat(xstrdup(acl), "\t", dl_ace->name, "\t", tmp); + if (acl != NULL) { + // Temporary placeholder for the original + char *_acl = xstrdup(acl); + acl = xmalloc(strlen(acl) + 2 + strlen(dl_ace->name) + strlen(tmp) + 1); + sprintf(acl, "%s\t%s\t%s", _acl, dl_ace->name, tmp); + free(_acl); } else { - acl = strconcat(dl_ace->name, "\t", tmp); + acl = xmalloc(1 + strlen(dl_ace->name) + strlen(tmp) + 1); + sprintf(acl, "%s\t%s", dl_ace->name, tmp); } + + syslog(LOG_DEBUG, "Mailbox ACL: '%s %s' (acl now: %s)", dl_ace->name, tmp, acl); } + if (tmp) free(tmp); } } else { // (dl_acl) syslog(LOG_NOTICE, "Mailbox without an ACL: '%s'", name);
View file
cyrus-imapd-2.5.tar.gz/lib/charset/aliases.txt
Changed
@@ -20,6 +20,7 @@ x-unknown iso-8859-1 x-user-defined iso-8859-1 none iso-8859-1 +latin1 iso-8859-1 # sort-of - see Filter::Trigraph 646 iso-8859-1
View file
cyrus-imapd-2.5.tar.gz/sieve/bc_eval.c
Changed
@@ -952,7 +952,7 @@ int relation; int timezone_offset = 0; int zone; - struct tm *tm; + struct tm tm; time_t t; ++i; /* BC_DATE | BC_CURRENTDATE */ @@ -1058,7 +1058,7 @@ t += timezone_offset * 60; /* get tm struct */ - tm = gmtime(&t); + gmtime_r(&t, &tm); /* @@ -1074,24 +1074,24 @@ for (key = keylist; *key; ++key) { switch (date_part) { case B_YEAR: - snprintf(buffer, sizeof(buffer), "%04d", 1900 + tm->tm_year); + snprintf(buffer, sizeof(buffer), "%04d", 1900 + tm.tm_year); break; case B_MONTH: - snprintf(buffer, sizeof(buffer), "%02d", 1 + tm->tm_mon); + snprintf(buffer, sizeof(buffer), "%02d", 1 + tm.tm_mon); break; case B_DAY: - snprintf(buffer, sizeof(buffer), "%02d", tm->tm_mday); + snprintf(buffer, sizeof(buffer), "%02d", tm.tm_mday); break; case B_DATE: snprintf(buffer, sizeof(buffer), "%04d-%02d-%02d", - 1900 + tm->tm_year, 1 + tm->tm_mon, tm->tm_mday); + 1900 + tm.tm_year, 1 + tm.tm_mon, tm.tm_mday); break; case B_JULIAN: { int month, year; int c, ya; - month = 1 + tm->tm_mon; - year = 1900 + tm->tm_year; + month = 1 + tm.tm_mon; + year = 1900 + tm.tm_year; if (month > 2) { month -= 3; @@ -1105,20 +1105,20 @@ snprintf(buffer, sizeof(buffer), "%d", (c * 146097 / 4 + ya * 1461 / 4 + - (month * 153 + 2) / 5 + tm->tm_mday + 1721119)); + (month * 153 + 2) / 5 + tm.tm_mday + 1721119)); } break; case B_HOUR: - snprintf(buffer, sizeof(buffer), "%02d", tm->tm_hour); + snprintf(buffer, sizeof(buffer), "%02d", tm.tm_hour); break; case B_MINUTE: - snprintf(buffer, sizeof(buffer), "%02d", tm->tm_min); + snprintf(buffer, sizeof(buffer), "%02d", tm.tm_min); break; case B_SECOND: - snprintf(buffer, sizeof(buffer), "%02d", tm->tm_sec); + snprintf(buffer, sizeof(buffer), "%02d", tm.tm_sec); break; case B_TIME: snprintf(buffer, sizeof(buffer), "%02d:%02d:%02d", - tm->tm_hour, tm->tm_min, tm->tm_sec); + tm.tm_hour, tm.tm_min, tm.tm_sec); break; case B_ISO8601: time_to_iso8601(t, buffer, sizeof(buffer)); @@ -1133,7 +1133,7 @@ abs(timezone_offset) % 60); break; case B_WEEKDAY: - snprintf(buffer, sizeof(buffer), "%1d", tm->tm_wday); + snprintf(buffer, sizeof(buffer), "%1d", tm.tm_wday); break; }
View file
cyrus-imapd-2.5.tar.gz/sieve/sieve.y
Changed
@@ -1274,7 +1274,7 @@ int gmoffset; int hours; int minutes; - struct tm *tm; + struct tm tm; time_t t; if (dt->comparator == NULL) { @@ -1285,8 +1285,8 @@ } if (dt->zonetag == -1) { t = time(NULL); - tm = localtime(&t); - gmoffset = gmtoff_of(tm, &t) / 60; + localtime_r(&t, &tm); + gmoffset = gmtoff_of(&tm, t) / 60; hours = abs(gmoffset) / 60; minutes = abs(gmoffset) % 60; snprintf(zone, 6, "%c%02d%02d", (gmoffset >= 0 ? '+' : '-'), hours, minutes);
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
.