components/desktop/firefox/patches/firefox27-47-uname.patch
changeset 5255 cea0e462549a
equal deleted inserted replaced
5252:947514442d05 5255:cea0e462549a
       
     1 The uname() function on Solaris can return a non-negative value. 
       
     2 
       
     3 --- mozilla-esr31/toolkit/components/startup/nsUserInfoUnix.cpp.orig	2015-06-04 17:42:51.565111934 -0700
       
     4 +++ mozilla-esr31/toolkit/components/startup/nsUserInfoUnix.cpp	2015-06-04 17:42:51.567398410 -0700
       
     5 @@ -106,7 +106,7 @@
       
     6      char *domainname = nullptr;
       
     7  
       
     8      // is this portable?  that is a POSIX compliant call, but I need to check
       
     9 -    if (uname(&buf)) { 
       
    10 +    if (uname(&buf) < 0) { 
       
    11          return rv;
       
    12      }
       
    13