lsb_release incorrectly parses quoted strings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lsb |
New
|
Undecided
|
Unassigned |
Bug Description
If the contents of /etc/redhat-release are enclosed in quotes, lsb_release incorrectly parses the contents:
# cat /etc/*-release
"Red Hat Enterprise Linux Client release 7.0 (Maipo)"
# lsb_release -a
LSB Version: :core-4.
Distributor ID: "RedHatEnterpri
Description: "Red Hat Enterprise Linux Client release 7.0 (Maipo)"
Release: 7.0
Codename: Maipo
(Note that the value returned for Distributor ID is missing the closing quotation mark.)
Removing the quotes yields correct output:
# cat /etc/redhat-release
Red Hat Enterprise Linux Client release 7.0 (Maipo)
# lsb_release -a
LSB Version: :core-4.
Distributor ID: RedHatEnterpris
Description: Red Hat Enterprise Linux Client release 7.0 (Maipo)
Release: 7.0
Codename: Maipo