From 983cbd91a8b5e87b9e2507d1179d969d784d2b67 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 14 Jan 2021 00:10:23 +0900 Subject: [PATCH] udev: add missing short option name Follow-up for 4fcc033b5476039a7a8030e1edc261d42cec028b. Fixes CID#1442307. --- src/udev/udev-builtin-blkid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c index 6a3b7cf18f..2daafb1150 100644 --- a/src/udev/udev-builtin-blkid.c +++ b/src/udev/udev-builtin-blkid.c @@ -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;