summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/session.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-28 03:50:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-08-28 03:50:55 +0000
commit73f6f1368316c6c85c8a506f8db5bc26ba8446dc (patch)
treec75e63187433d1e083c6a8cb9d0ef9398c14d558 /usr.bin/ssh/session.c
parent46e0cd1637097cd7834953183d8b27235607402a (diff)
print uid/gid as unsigned
Diffstat (limited to 'usr.bin/ssh/session.c')
-rw-r--r--usr.bin/ssh/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c
index 1d821c3b8a3..2c9a50fa741 100644
--- a/usr.bin/ssh/session.c
+++ b/usr.bin/ssh/session.c
@@ -8,7 +8,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: session.c,v 1.30 2000/08/25 16:10:05 deraadt Exp $");
+RCSID("$OpenBSD: session.c,v 1.31 2000/08/28 03:50:54 deraadt Exp $");
#include "xmalloc.h"
#include "ssh.h"
@@ -811,7 +811,7 @@ do_child(const char *command, struct passwd * pw, const char *term,
#endif
}
if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid)
- fatal("Failed to set uids to %d.", (int) pw->pw_uid);
+ fatal("Failed to set uids to %u.", (u_int) pw->pw_uid);
}
/*
* Get the shell from the password data. An empty shell field is