On 31/10/26 00:07, Brad Smith wrote:
qga: fix uname() return value check in guest-get-osinfo

POSIX only specifies that uname() returns a non-negative value on
success. Solaris returns 1, so guest-get-osinfo treated every
successful call as a failure and reported a stale errno.

Check for a negative return value instead, as linux-user/uname.c
already does.

Signed-off-by: Brad Smith <[email protected]>
---
  qga/commands-posix.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to