summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch')
-rw-r--r--sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch b/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch
new file mode 100644
index 0000000..aaea0ae
--- /dev/null
+++ b/sys-cluster/heartbeat/files/heartbeat-2.1.3-leapyear.patch
@@ -0,0 +1,13 @@
+diff -r 4a3eac571f44 lib/crm/common/iso8601.c
+--- a/lib/crm/common/iso8601.c Fri Dec 21 08:25:17 2007 -0700
++++ b/lib/crm/common/iso8601.c Fri Feb 29 15:01:10 2008 +0100
+@@ -677,8 +677,8 @@ gboolean ordinal_to_gregorian(ha_time_t
+ }
+ if(a_date->days == 0) {
+ /* annoying underflow */
++ (a_date->months)--;
+ a_date->days = days_per_month(a_date->months, a_date->years);
+- (a_date->months)--;
+ }
+
+ a_date->has->days = TRUE;