Bug 1476910 - /usr/lib/udev/scsi_id -s switch doesn't work
/usr/lib/udev/scsi_id -s switch doesn't work
Status: ASSIGNED
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd (Show other bugs)
7.4
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Jan Synacek
qe-baseos-daemons
: EasyFix
Depends On: 1476908
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-31 15:16 EDT by Jaroslav Škarvada
Modified: 2017-08-01 03:51 EDT (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1476908
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jaroslav Škarvada 2017-07-31 15:16:04 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:
Comment 2 Jaroslav Škarvada 2017-07-31 15:20:25 EDT
The same problem is on RHEL-7.3 (very probably also on RHEL-7.4. but untested):
systemd-219-30.el7.aarch64
Comment 3 Jan Synacek 2017-08-01 02:40:17 EDT
It's missing from the getopt_long() argument string.

while ((option = getopt_long(argc, argv, "d:f:gp:uvVxh", options, NULL)) >= 0)
Comment 4 Jan Synacek 2017-08-01 03:00:17 EDT
https://github.com/systemd/systemd/pull/6501

Note You need to log in before you can comment on or make changes to this bug.