1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/parsers/operatingsystem
Kir Kolyshkin 8a5c13155e all: use unix.ByteSliceToString for utsname fields
This also fixes the GetOperatingSystem function in
pkg/parsers/operatingsystem which mistakenly truncated utsname.Machine
to the index of \0 in utsname.Sysname.

Fixes: 7aeb3efcb4
Cc: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2022-05-18 17:13:20 -07:00
..
operatingsystem_linux.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
operatingsystem_linux_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
operatingsystem_unix.go all: use unix.ByteSliceToString for utsname fields 2022-05-18 17:13:20 -07:00
operatingsystem_windows.go pkg/system: move IsWindowsClient to pkg/parsers/operatingsystem 2022-03-17 10:26:50 +01:00
windows_os_string.go pkg/parsers: support Windows 11; drop ProductName 2022-03-04 16:08:34 -05:00
windows_os_string_test.go pkg/parsers: support Windows 11; drop ProductName 2022-03-04 16:08:34 -05:00