From ac45a0796f3e0138283875d456291eb92f000541 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 21 Oct 2021 08:33:07 +0000 Subject: [PATCH] Print uid with %u instead of %i. Prompted by a diff by Jonas Termansen, discussed with deraadt, millert ok jsing --- lib/libtls/tls_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libtls/tls_config.c b/lib/libtls/tls_config.c index 9144dad9520..4ca497a0321 100644 --- a/lib/libtls/tls_config.c +++ b/lib/libtls/tls_config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_config.c,v 1.63 2021/01/21 22:03:25 eric Exp $ */ +/* $OpenBSD: tls_config.c,v 1.64 2021/10/21 08:33:07 tb Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -722,7 +722,7 @@ tls_config_set_session_fd(struct tls_config *config, int session_fd) if (sb.st_uid != getuid()) { tls_config_set_errorx(config, "session file has incorrect " - "owner (uid %i != %i)", sb.st_uid, getuid()); + "owner (uid %u != %u)", sb.st_uid, getuid()); return (-1); } mugo = sb.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO); -- 2.20.1