anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0542-scsi_id-add-missing-options-to-getopt_long-6501.patch

923a60
From c7eef2f4f985dd427b120fd00a36fd3d7f9a001a Mon Sep 17 00:00:00 2001
923a60
From: Jan Synacek <jan.synacek@gmail.com>
923a60
Date: Wed, 2 Aug 2017 10:12:33 +0200
923a60
Subject: [PATCH] scsi_id: add missing options to getopt_long() (#6501)
923a60
923a60
(cherry picked from commit ebc6f34a0b2359ac0da41037a1122d3abe02caee)
923a60
923a60
Resolves: #1476910
923a60
---
923a60
 src/udev/scsi_id/scsi_id.c | 2 +-
923a60
 1 file changed, 1 insertion(+), 1 deletion(-)
923a60
923a60
diff --git a/src/udev/scsi_id/scsi_id.c b/src/udev/scsi_id/scsi_id.c
923a60
index a1b8e75fac..eae7e29557 100644
923a60
--- a/src/udev/scsi_id/scsi_id.c
923a60
+++ b/src/udev/scsi_id/scsi_id.c
923a60
@@ -333,7 +333,7 @@ static int set_options(struct udev *udev,
923a60
          * file) we have to reset this back to 1.
923a60
          */
923a60
         optind = 1;
923a60
-        while ((option = getopt_long(argc, argv, "d:f:gp:uvVxh", options, NULL)) >= 0)
923a60
+        while ((option = getopt_long(argc, argv, "d:f:gp:uvVxhbs:", options, NULL)) >= 0)
923a60
                 switch (option) {
923a60
                 case 'b':
923a60
                         all_good = false;