]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: add missing short option name
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 13 Jan 2021 15:10:23 +0000 (00:10 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 13 Jan 2021 20:53:13 +0000 (21:53 +0100)
Follow-up for 4fcc033b5476039a7a8030e1edc261d42cec028b.

Fixes CID#1442307.

src/udev/udev-builtin-blkid.c

index 6a3b7cf18fd3a5d49566d3c8f83a2eafa13941cf..2daafb115054ecc8e5463e51691a14f0e647dcdf 100644 (file)
@@ -239,7 +239,7 @@ static int builtin_blkid(sd_device *dev, int argc, char *argv[], bool test) {
         static const struct option options[] = {
                 { "offset", required_argument, NULL, 'o' },
                 { "hint",   required_argument, NULL, 'H' },
-                { "noraid", no_argument, NULL, 'R' },
+                { "noraid", no_argument,       NULL, 'R' },
                 {}
         };
 
@@ -251,7 +251,7 @@ static int builtin_blkid(sd_device *dev, int argc, char *argv[], bool test) {
         for (;;) {
                 int option;
 
-                option = getopt_long(argc, argv, "o:R", options, NULL);
+                option = getopt_long(argc, argv, "o:H:R", options, NULL);
                 if (option == -1)
                         break;