changeset 25670:c952d8bf1a1f stable

consider any non-zero return from uname to be failure (bug #54235) * oct-uname.cc (uname::init): Handle all non-zero values returned from octave_uname_wrapper as failure, not just negative values.
author John W. Eaton <jwe@octave.org>
date Wed, 25 Jul 2018 17:28:04 -0400
parents 19eba00c0c7d
children 8de8984992c1 a8b0fb44ed94
files liboctave/system/oct-uname.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/system/oct-uname.cc	Wed Jul 25 16:01:30 2018 -0400
+++ b/liboctave/system/oct-uname.cc	Wed Jul 25 17:28:04 2018 -0400
@@ -42,7 +42,7 @@
       err = octave_uname_wrapper (&sysname, &nodename, &release,
                                   &version, &machine);
 
-      if (err < 0)
+      if (err)
         msg = std::strerror (errno);
       else
         {