From: Yu Watanabe Date: Wed, 13 Jan 2021 15:10:23 +0000 (+0900) Subject: udev: add missing short option name X-Git-Tag: v248-rc1~351 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=983cbd91a8b5e87b9e2507d1179d969d784d2b67;p=thirdparty%2Fsystemd.git udev: add missing short option name Follow-up for 4fcc033b5476039a7a8030e1edc261d42cec028b. Fixes CID#1442307. --- diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c index 6a3b7cf18fd..2daafb11505 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;