فهرست منبع

totemconfig: Check uname return value correctly

uname in Solaris/Illumos returns non-negative value when succesful.

Signed-off-by: Andreas Grueninger <andreas.grueninger@noemail.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Andreas Grueninger 3 سال پیش
والد
کامیت
1038e4a18f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      exec/totemconfig.c

+ 1 - 1
exec/totemconfig.c

@@ -737,7 +737,7 @@ static int find_local_node(icmap_map_t map, int use_cache)
 	}
 
 	res = uname(&utsname);
-	if (res) {
+	if (res < 0) {
 		return -1;
 	}
 	node = utsname.nodename;