Skip to content

v0.47.0

@aisk aisk tagged this 30 Jun 17:07
Kernel release strings such as "3.4.35_hi3535" on some Synology devices
failed to parse because only dash and plus suffixes were stripped.
Parse the leading digits of each component instead, mirroring the Go
runtime fix.

This copies the implementation from the Go runtime's parseRelease as
updated in CL 781800.

Fixes golang/go#80094

Co-authored-by: Brad Fitzpatrick <bradfitz@golang.org>
Change-Id: I41f8fd0a1d6c012eebd5368e623b42e99220d1a3
Reviewed-on: https://go-review.googlesource.com/c/sys/+/793760
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Assets 2
Loading