components/desktop/firefox/patches/firefox-14-uname.patch
changeset 5527 611b2d6efdfe
parent 5255 cea0e462549a
child 7309 2655ef11c386
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/desktop/firefox/patches/firefox-14-uname.patch	Tue Mar 01 12:56:53 2016 -0800
@@ -0,0 +1,15 @@
+The uname() function on Solaris can return a non-negative value.
+Solaris specific patch, will not send upstream
+
+diff --git a/toolkit/components/startup/nsUserInfoUnix.cpp b/toolkit/components/startup/nsUserInfoUnix.cpp
+--- a/toolkit/components/startup/nsUserInfoUnix.cpp
++++ b/toolkit/components/startup/nsUserInfoUnix.cpp
+@@ -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;
+     }
+