joyent/node — pull request #5350 by isaacs (2013-04-22 17:19:17+00:00)
Title: os: Fix uname() error handling on sunos

The uname function can return any non-negative int to indicate success.

Strange, but that's how it is documented. This also fixes a similar
buffer overflow in the even more unlikely event that info.release is
> 255 characters, similar to how 78c5de5 did for info.sysname.

Fixes regression introduced in 78c5de5.