Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
os_get_passwd: Explicitly compare uid/gid against -1 instead of >= 0 (l…
…uvit#590) In Libuv 1.44.0, uv_passwd_t.uid/gid was changed to be unsigned, so the >= 0 check would always return true. Changing to compare against -1 explicitly fixes luvit#589 while still maintaining correct functionality when built against previous Libuv versions. Note that with Libuv 1.44.0 and above, this relies on implicitly casting -1 to unsigned long (the type of `uv_passwd_t.uid`/`uv_passwd_t.gid`).
- Loading branch information