Files
scst/scstadmin/scstadmin.sysfs
Gleb Chesnokov 314659ed7c scstadmin: Normalize SCST version parsing in SCST.pm
scstadmin's version check assumed scstVersion() returns a bare "X.Y.Z".
After changing the sysfs attribute it may return strings like
"SCST version: 3.10.0-pre", which triggered a numeric warning and a
false failure:

  Argument "SCST version: 3" isn't numeric in numeric gt (...)

Parse the version number from the raw string and ignore any
prefix/suffix. If no version can be parsed, keep the existing
failure path.

Fixes: https://github.com/SCST-project/scst/issues/296
2025-08-18 11:45:57 +03:00
..