From c2df3ec0c03f303caadf3f04d9bc72a0783b8030 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Tue, 25 Jun 2002 23:21:41 +0000 Subject: - deraadt@cvs.openbsd.org 2002/06/24 17:57:20 [sftp-server.c sshpty.c] explicit (u_int) for uid and gid --- sshpty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sshpty.c') diff --git a/sshpty.c b/sshpty.c index 89447fbd..64ac4e59 100644 --- a/sshpty.c +++ b/sshpty.c @@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshpty.c,v 1.6 2002/06/23 21:06:13 deraadt Exp $"); +RCSID("$OpenBSD: sshpty.c,v 1.7 2002/06/24 17:57:20 deraadt Exp $"); #ifdef HAVE_UTIL_H # include @@ -395,11 +395,11 @@ pty_setowner(struct passwd *pw, const char *ttyname) if (errno == EROFS && (st.st_uid == pw->pw_uid || st.st_uid == 0)) error("chown(%.100s, %u, %u) failed: %.100s", - ttyname, pw->pw_uid, gid, + ttyname, (u_int)pw->pw_uid, (u_int)gid, strerror(errno)); else fatal("chown(%.100s, %u, %u) failed: %.100s", - ttyname, pw->pw_uid, gid, + ttyname, (u_int)pw->pw_uid, (u_int)gid, strerror(errno)); } } -- cgit v1.2.1