summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshconnect.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2000-08-28 03:50:54 +0000
committerderaadt <deraadt@openbsd.org>2000-08-28 03:50:54 +0000
commit5ca0c297cfe9751bd5893e24b968307eddc8bbf6 (patch)
tree27fc4b06c31d8c3fb82457f92b01f22b4b0c0ef8 /usr.bin/ssh/sshconnect.c
parentexplicit path to gated so that it will load as expected (diff)
downloadwireguard-openbsd-5ca0c297cfe9751bd5893e24b968307eddc8bbf6.tar.xz
wireguard-openbsd-5ca0c297cfe9751bd5893e24b968307eddc8bbf6.zip
print uid/gid as unsigned
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r--usr.bin/ssh/sshconnect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c
index ea4dfde2fa2..f16e4e6f601 100644
--- a/usr.bin/ssh/sshconnect.c
+++ b/usr.bin/ssh/sshconnect.c
@@ -8,7 +8,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect.c,v 1.76 2000/06/17 20:30:10 markus Exp $");
+RCSID("$OpenBSD: sshconnect.c,v 1.77 2000/08/28 03:50:54 deraadt Exp $");
#include <openssl/bn.h>
#include <openssl/dsa.h>
@@ -189,8 +189,8 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr,
int gaierr;
struct linger linger;
- debug("ssh_connect: getuid %d geteuid %d anon %d",
- (int) getuid(), (int) geteuid(), anonymous);
+ debug("ssh_connect: getuid %u geteuid %u anon %d",
+ (u_int) getuid(), (u_int) geteuid(), anonymous);
/* Get default port if port has not been set. */
if (port == 0) {
@@ -661,7 +661,7 @@ ssh_login(int host_key_valid, RSA *own_host_key, const char *orighost,
/* Get local user name. Use it as server user if no user name was given. */
pw = getpwuid(original_real_uid);
if (!pw)
- fatal("User id %d not found from user database.", original_real_uid);
+ fatal("User id %u not found from user database.", original_real_uid);
local_user = xstrdup(pw->pw_name);
server_user = options.user ? options.user : local_user;