Red Hat Bugzilla – Bug 1476910
/usr/lib/udev/scsi_id -s switch doesn't work
Last modified: 2018-04-10 07:22:28 EDT
+++ This bug was initially created as a clone of Bug #1476908 +++ Description of problem: It seems the short -s option doesn't work, i.e. it's at least inconsistent with the built-in help. Version-Release number of selected component (if applicable): systemd-233-6.fc26.x86_64 How reproducible: Always Steps to Reproduce: 1. # /usr/lib/udev/scsi_id -gu -s /dev/sda 2. # /usr/lib/udev/scsi_id -gu -s3 /dev/sda 3. # /usr/lib/udev/scsi_id -gu -s 3 /dev/sda 4. # /usr/lib/udev/scsi_id -gu --sg-version=3 /dev/sda Actual results: 1. /usr/lib/udev/scsi_id: invalid option -- 's' 2. /usr/lib/udev/scsi_id: invalid option -- 's' 3. /usr/lib/udev/scsi_id: invalid option -- 's' 4. ID Expected results: 1. probably /usr/lib/udev/scsi_id: invalid option -- 's' 2. ID 3. error or ID 4. ID Additional info:
The same problem is on RHEL-7.3 (very probably also on RHEL-7.4. but untested): systemd-219-30.el7.aarch64
It's missing from the getopt_long() argument string. while ((option = getopt_long(argc, argv, "d:f:gp:uvVxh", options, NULL)) >= 0)
https://github.com/systemd/systemd/pull/6501
fix merged to staging branch -> https://github.com/lnykryn/systemd-rhel/pull/151 -> post
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0711