summaryrefslogtreecommitdiff
path: root/sshpty.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-25 23:21:41 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-25 23:21:41 +0000
commitc2df3ec0c03f303caadf3f04d9bc72a0783b8030 (patch)
tree54de658696befa410d0ea54efb7b5a489b72cb79 /sshpty.c
parent9b4139742f146f6048af147da136e8d71c52605e (diff)
downloadopenssh-git-c2df3ec0c03f303caadf3f04d9bc72a0783b8030.tar.gz
- deraadt@cvs.openbsd.org 2002/06/24 17:57:20
[sftp-server.c sshpty.c] explicit (u_int) for uid and gid
Diffstat (limited to 'sshpty.c')
-rw-r--r--sshpty.c6
1 files changed, 3 insertions, 3 deletions
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 <util.h>
@@ -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));
}
}