sys-kernel/vanilla-kernel: Verify version passed to has_version
authorMichał Górny <mgorny@gentoo.org>
Sat, 28 Dec 2019 20:29:45 +0000 (21:29 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 28 Dec 2019 20:34:33 +0000 (21:34 +0100)
commit46fe7b1894a7fbbf7e29e7515eac4e5c78d4eee6
tree57098e064b4d07a84d63d3ee59a2ae821f9ea732
parentb4b74f7ed1e2dc0d6a0c5813a75bd06615195178
sys-kernel/vanilla-kernel: 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/vanilla-kernel-5.4.6-r1.ebuild