]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup-generator: use proper constant for uuid alphabet
authorOndrej Kozina <okozina@redhat.com>
Tue, 21 Jul 2020 08:12:27 +0000 (10:12 +0200)
committerOndrej Kozina <okozina@redhat.com>
Fri, 25 Sep 2020 14:13:54 +0000 (16:13 +0200)
src/cryptsetup/cryptsetup-generator.c

index 3ff50f4b6bce74f9d78c0e334ae989241a093a4b..dc80423eca011088af06bdee35a1e1ebc7f64baa 100644 (file)
@@ -570,7 +570,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
                 if (proc_cmdline_value_missing(key, value))
                         return 0;
 
-                n = strspn(value, LETTERS DIGITS "-");
+                n = strspn(value, ALPHANUMERICAL "-");
                 if (value[n] != '=') {
                         if (free_and_strdup(&arg_default_keyfile, value) < 0)
                                  return log_oom();