summaryrefslogtreecommitdiff
path: root/repo/ceph/11-dump_time_header_impl.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-27 23:08:34 +0100
committerdavidovski <david@davidovski.xyz>2022-06-27 23:08:34 +0100
commitf13e0cac13f90f7f57bce3b26b2e6383de6e4ad2 (patch)
tree31fe2a493efcc3ec8721b8ae9943a0f938cd3f4d /repo/ceph/11-dump_time_header_impl.patch
parente4a392b4e1e547c9569abdd1f08ec51da3dc4562 (diff)
added qemu
Diffstat (limited to 'repo/ceph/11-dump_time_header_impl.patch')
-rw-r--r--repo/ceph/11-dump_time_header_impl.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/repo/ceph/11-dump_time_header_impl.patch b/repo/ceph/11-dump_time_header_impl.patch
deleted file mode 100644
index d19e7ed..0000000
--- a/repo/ceph/11-dump_time_header_impl.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-Patch by Robin Mueller
-
-The strftime method of the libmusl writes 'UTC' instead of 'GMT' when
-the character Z is used in the format pattern, and it looks like the
-S3 clients don't like 'UTC' in the date strings.
-
-This patch replaces 'UTC' with 'GMT' at the relevant location.
-
---- a/src/rgw/rgw_rest.cc 2021-07-08 16:03:56.000000000 +0200
-+++ b/src/rgw/rgw_rest.cc 2021-08-19 09:48:30.339492024 +0200
-@@ -436,8 +436,21 @@
- return 0;
- }
-
-- return strftime(timestr, sizeof(timestr),
-- "%a, %d %b %Y %H:%M:%S %Z", tmp);
-+ size_t len = strftime(timestr, sizeof(timestr),
-+ "%a, %d %b %Y %H:%M:%S %Z", tmp);
-+
-+ int position = 0;
-+ while (timestr[position] != 'U' && len - position > 3)
-+ position++;
-+
-+ if (len - position == 3) {
-+ char substr[4];
-+ memcpy(substr, &timestr[position], 4);
-+
-+ if (strcmp(substr, "UTC") == 0)
-+ memcpy(&timestr[position], "GMT", 3);
-+ }
-+ return len;
- }
-
- void dump_time_header(struct req_state *s, const char *name, real_time t)