2007-03-28 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Wed, 28 Mar 2007 19:46:38 +0000 (19:46 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Wed, 28 Mar 2007 19:46:38 +0000 (19:46 -0000)
* environment.c: Fix return value check on uname so we can get the
executing version on Solaris operating systems.

svn path=/trunk/mono/; revision=75103

mono/metadata/ChangeLog
mono/metadata/environment.c

index 5f2d68879f23bf00a51991e7ef2ec29c0a08a45c..366cbea34b3f31ade5a711efab1d1558aa014c0a 100644 (file)
@@ -1,3 +1,8 @@
+2007-03-28  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * environment.c: Fix return value check on uname so we can get the 
+       executing version on Solaris operating systems.
+
 2007-03-28  Jb Evain  <jbevain@gmail.com>
 
        * class.c (mono_type_get_name_recurse): Complete the
index 0313affe16eb997b30512d1bbb203ea011733183..e3f971dca45926fa294031c4eb2d9ca9ea8a820c 100644 (file)
@@ -58,7 +58,7 @@ ves_icall_System_Environment_GetOSVersionString (void)
 
        MONO_ARCH_SAVE_REGS;
 
-       if (uname (&name) == 0) {
+       if (uname (&name) >= 0) {
                return mono_string_new (mono_domain_get (), name.release);
        }
 #endif