| Bug ID | 110963 |
|---|---|
| Summary | Wrong condition and wrong variable substitution in libgl1-amdgpu-mesa-dri in postinst script |
| Product | DRI |
| Version | unspecified |
| Hardware | Other |
| OS | All |
| Status | NEW |
| Severity | major |
| Priority | medium |
| Component | DRM/AMDgpu-pro |
| Assignee | dri-devel@lists.freedesktop.org |
| Reporter | ashark@linuxcomp.ru |
19.20-812932 release for Ubuntu
In libgl1-amdgpu-mesa-dri in postinst script there is such condition:
# Support I+A hybrid graphics
if [ -f ... ] && [ "str1" != "str2" ]; then
You just compare two different strings? I guess you wanted to compare folder
contents. But now that second condition will always be true.
Further there is:
if [ "${f%%/*}" = ... ]; then
there is extra percent symbol, you should remove it. Btw, in rpm release
variant in scriptlet there is no such mistake.