diff options
author | Matthew Dempsky <matthew@openbsd.org> | 2011-04-19 20:12:47 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@openbsd.org> | 2011-04-19 20:12:47 +0000 |
commit | 3970853febf1a371d68d27c331e81a2afe1a63bb (patch) | |
tree | 4cc79f4fe44b18669b7eab9a4e7d5ba898ad3fa0 | |
parent | 0f97ac42210a9eedb21c5add9b8c2fb52ef84881 (diff) | |
download | rtmux-3970853febf1a371d68d27c331e81a2afe1a63bb.tar.gz rtmux-3970853febf1a371d68d27c331e81a2afe1a63bb.tar.bz2 rtmux-3970853febf1a371d68d27c331e81a2afe1a63bb.zip |
POSIX only guarantees uname() will return a non-negative value on
success.
ok nicm@
-rw-r--r-- | cmd-server-info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-server-info.c b/cmd-server-info.c index 3edb9d2b..776b137d 100644 --- a/cmd-server-info.c +++ b/cmd-server-info.c @@ -71,7 +71,7 @@ cmd_server_info_exec(unused struct cmd *self, struct cmd_ctx *ctx) ctx->print(ctx, "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); } |