]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect-image: fix build
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Feb 2024 21:49:29 +0000 (22:49 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 28 Feb 2024 23:02:08 +0000 (23:02 +0000)
PRs #31531 and #31524 were merged in quick succession. They are fine
both on their own. But in combination they break the build. Fix it.

src/shared/dissect-image.c

index de13fa3bc30c7378fadefc1cdfd91593452d193e..eac3641abd56196af2c8a32367c61b51c87c349f 100644 (file)
@@ -2546,7 +2546,7 @@ static int validate_signature_userspace(const VeritySettings *verity, DissectIma
                 return 0;
         }
 
-        r = getenv_bool_secure("SYSTEMD_ALLOW_USERSPACE_VERITY");
+        r = secure_getenv_bool("SYSTEMD_ALLOW_USERSPACE_VERITY");
         if (r < 0 && r != -ENXIO) {
                 log_debug_errno(r, "Failed to parse $SYSTEMD_ALLOW_USERSPACE_VERITY environment variable, refusing userspace dm-verity signature authentication.");
                 return 0;