daandemeyer / rpms / systemd

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