summaryrefslogtreecommitdiffstats
path: root/cmd-server-info.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2011-04-25 20:32:03 +0000
committerTiago Cunha <tcunha@gmx.com>2011-04-25 20:32:03 +0000
commitd5150484d1ff6be13e4c4c5c399d44b0054755fa (patch)
treeb97e476e0d10b811f58e01c2731ec538916822ab /cmd-server-info.c
parent656a6684731928805ec736037fde9cc35e1e652f (diff)
Sync OpenBSD patchset 895:
POSIX only guarantees uname() will return a non-negative value on success. ok nicm@
Diffstat (limited to 'cmd-server-info.c')
-rw-r--r--cmd-server-info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-server-info.c b/cmd-server-info.c
index f09ba989..5dfb9a7a 100644
--- a/cmd-server-info.c
+++ b/cmd-server-info.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-server-info.c,v 1.44 2011-02-15 15:20:03 tcunha Exp $ */
+/* $Id: cmd-server-info.c,v 1.45 2011-04-25 20:32:03 tcunha Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -71,7 +71,7 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx)
"tmux " VERSION ", pid %ld, started %s", (long) getpid(), tim);
ctx->print(
ctx, "socket path %s, debug level %d", socket_path, debug_level);
- if (uname(&un) == 0) {
+ if (uname(&un) >= 0) {
ctx->print(ctx, "system is %s %s %s %s",
un.sysname, un.release, un.version, un.machine);
}