[ostree] repo: Fix backwards timestamp in ostree_repo_write_commit()
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] repo: Fix backwards timestamp in ostree_repo_write_commit()
- Date: Thu, 3 Dec 2015 17:44:20 +0000 (UTC)
commit 94bc9765d519eefafcfa465060502dfbe7321913
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Dec 3 12:01:38 2015 -0500
repo: Fix backwards timestamp in ostree_repo_write_commit()
ostree_repo_write_commit_with_time() converts the timestamp to
big-endian byte order.
ostree_repo_write_commit() was also doing this when calling
ostree_repo_write_commit_with_time(), resulting in a corrupted
commit object (timestamp bytes were backwards).
Recent regression in 14ffd7022a8c840f277c81e53864be4ea5fabacb
src/libostree/ostree-repo-commit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c
index bee58ca..6afc54a 100644
--- a/src/libostree/ostree-repo-commit.c
+++ b/src/libostree/ostree-repo-commit.c
@@ -1978,7 +1978,7 @@ ostree_repo_write_commit (OstreeRepo *self,
body,
metadata,
root,
- GUINT64_TO_BE (g_date_time_to_unix (now)),
+ g_date_time_to_unix (now),
out_commit,
cancellable,
error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]