Skip to content
Snippets Groups Projects

Fix FTBFS

Merged Simon McVittie requested to merge smcv/libjcat:debian into debian
2 files
+ 26
0
Compare changes
  • Side-by-side
  • Inline
Files
2
 
From: Simon McVittie <smcv@debian.org>
 
Date: Sat, 28 Mar 2020 16:46:44 +0000
 
Subject: jcat-self-test: Sign /etc/os-release instead of /etc/machine-id
 
 
Containers and minimal autobuilder environments don't always have
 
a systemd machine ID, but os-release is fairly ubiquitous.
 
 
Signed-off-by: Simon McVittie <smcv@debian.org>
 
---
 
libjcat/jcat-self-test.c | 2 +-
 
1 file changed, 1 insertion(+), 1 deletion(-)
 
 
diff --git a/libjcat/jcat-self-test.c b/libjcat/jcat-self-test.c
 
index 93de1fd..7c3558b 100644
 
--- a/libjcat/jcat-self-test.c
 
+++ b/libjcat/jcat-self-test.c
 
@@ -486,7 +486,7 @@ jcat_pkcs7_engine_self_signed_func (void)
 
g_assert_no_error (error);
 
g_assert_nonnull (engine);
 
 
- payload = jcat_get_contents_bytes ("/etc/machine-id", &error);
 
+ payload = jcat_get_contents_bytes ("/etc/os-release", &error);
 
g_assert_no_error (error);
 
g_assert_nonnull (payload);
 
signature = jcat_engine_self_sign (engine, payload, JCAT_SIGN_FLAG_ADD_TIMESTAMP, &error);
Loading