]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup: HAVE_CRYPT_SET_KEYRING_TO_LINK is always defined
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 Aug 2025 12:05:24 +0000 (21:05 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Sep 2025 10:10:48 +0000 (12:10 +0200)
Follow-up for c5daf14c88ba44cefabe052de93a29d28b6b0175 (v256).

(cherry picked from commit fb4aabf4432d523b97376099ce4353b5c268ae82)

src/cryptsetup/cryptsetup.c

index f16b8f854da24d136a325f4340ead78b915422cd..06814ffbd7dbd9820a7948eb0662b4635ed807be 100644 (file)
@@ -582,7 +582,7 @@ static int parse_one_option(const char *option) {
                         log_warning_errno(r, "Failed to parse %s, ignoring: %m", option);
 
         } else if ((val = startswith(option, "link-volume-key="))) {
-#ifdef HAVE_CRYPT_SET_KEYRING_TO_LINK
+#if HAVE_CRYPT_SET_KEYRING_TO_LINK
                 _cleanup_free_ char *keyring = NULL, *key_type = NULL, *key_description = NULL;
                 const char *sep;