sys-kernel/vanilla-kernel-bin: Verify version passed to has_version
authorMichał Górny <mgorny@gentoo.org>
Sat, 28 Dec 2019 20:30:57 +0000 (21:30 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 28 Dec 2019 20:34:34 +0000 (21:34 +0100)
commit63aed098518786d1b135a6c8665d84483be2f829
tree039388c6e6559d6263c8f99a491dff66f2c9924a
parent46fe7b1894a7fbbf7e29e7515eac4e5c78d4eee6
sys-kernel/vanilla-kernel-bin: Verify version passed to has_version

Verify the version read from /usr/src/linux symlink and make sure
that it consists of plain [0-9.] before passing it to has_version.
If it doesn't conform, it isn't our symlink anyway.

Closes: https://bugs.gentoo.org/703822
Signed-off-by: Michał Górny <mgorny@gentoo.org>
sys-kernel/vanilla-kernel-bin/vanilla-kernel-bin-5.4.6.ebuild