author | Stacy Yeh <stacy.yeh@oracle.com> |
Mon, 11 Jan 2016 09:27:45 -0800 | |
changeset 5255 | cea0e462549a |
permissions | -rw-r--r-- |
The uname() function on Solaris can return a non-negative value. --- comm-esr31/mozilla/toolkit/components/startup/nsUserInfoUnix.cpp.orig 2015-06-04 17:42:51.565111934 -0700 +++ comm-esr31/mozilla/toolkit/components/startup/nsUserInfoUnix.cpp 2015-06-04 17:42:51.567398410 -0700 @@ -106,7 +106,7 @@ char *domainname = nullptr; // is this portable? that is a POSIX compliant call, but I need to check - if (uname(&buf)) { + if (uname(&buf) < 0) { return rv; }