Description of problem: iscsi-ls produces error output if Target Alias contains spaces: "/sbin/iscsi-ls: line 87: [: too many arguments" Version-Release number of selected component (if applicable): iscsi-initiator-utils 4.0.3.0 from RHEL4u6 How reproducible: Every time. Steps to Reproduce: 1. use iscsi-ls on a system with spaces in a target alias 2. 3. Actual results: Expected results: Additional info: A simple patch is attached to fix. $talias should have been quoted in the iscsi-ls script, but was not.
Created attachment 304535 [details] patch to fix iscsi-ls error with target aliases containing spaces.
Thanks Mike. RHEL 4.7 just got finished up from my side, so I am adding this to my merge list for RHEL 4.8.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Thanks for the patch Mike. It is in iscsi-initiator-utils-4.0.3.0-8. This should show up in RHEL 4.8. You will get a notification in the bugzilla.
Release note added. If any revisions are required, please set the "requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: The iscsi package provides the server daemon for the iSCSI protocol, as well as the utility programs used to manage it. iSCSI is a protocol for distributed disk access using SCSI commands sent over Internet Protocol networks. These updated packages include a fix for the following bug: * iscsi-ls did not allow for target aliases that contained multiple words. Therefore, when used on a system which included such an alias, iscsi-ls would print the following error: "/sbin/iscsi-ls: line 87: [: too many arguments". Iscsi-ls now correctly handles aliases that contain multiple words, and correctly displays information about those targets. Users should upgrade to this updated package,which resolves this issue.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2009-1009.html