Niels de Vos ebe378c79a util: trim "\x00" characters from the kernel version
It seems that convering the release component from the unix.Utsrelease
type leaves some trailing "\x00" characters.

While splitting the string to compare kernel versions, these additional
characters might prevent converting the string to an int. Strip the
additional characters before returning the string.

Note:
  "\x00" characters are not visible when printing to a file or screen.
  They can be seen in hex-editors, or sending the output through 'xxd'.

Fixes: #1167
Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-06-18 11:42:47 +00:00
..
2020-04-23 11:00:59 +00:00
2020-04-23 11:00:59 +00:00
2020-04-23 11:00:59 +00:00
2020-04-23 11:00:59 +00:00
2020-04-23 11:00:59 +00:00
2020-04-23 11:00:59 +00:00
2020-04-23 11:00:59 +00:00
2020-04-23 11:00:59 +00:00
2020-04-23 11:00:59 +00:00
2020-04-23 11:00:59 +00:00