diff options
| author | Avery Pennarun <apenwarr@tailscale.com> | 2026-04-13 03:52:19 +0200 |
|---|---|---|
| committer | Brad Fitzpatrick <brad@danga.com> | 2026-04-14 07:11:44 -0700 |
| commit | 621dc9cf1b5afb7d2ba00fc1c525d503175a4052 (patch) | |
| tree | 8a0a129c3a83df7b1d3fb632721df3dababcc860 /control/controlhttp/controlhttpserver | |
| parent | 6aa10576c902b0930c72f0c0113bb6e8636cfd1e (diff) | |
| download | tailscale-621dc9cf1b5afb7d2ba00fc1c525d503175a4052.tar.xz tailscale-621dc9cf1b5afb7d2ba00fc1c525d503175a4052.zip | |
tstest: fix kernel version parsing for Debian-style version strings
The kernel version parser used strings.Cut with "-" to handle versions
like "5.4.0-76-generic", but Debian uses "+" in versions like
"6.12.41+deb13-amd64".
Use strings.IndexAny to find the first "-" or "+" and truncate there.
Fixes TestKernelVersion on Debian systems.
Fixes #19395
Change-Id: I70e5f95682d54baf908e51f9f4b51c130b00aaaa
Co-Authored-By: Brad Fitzpatrick <bradfitz@tailscale.com>
Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver')
0 files changed, 0 insertions, 0 deletions
