diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-25 23:21:41 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-25 23:21:41 +0000 |
commit | c2df3ec0c03f303caadf3f04d9bc72a0783b8030 (patch) | |
tree | 54de658696befa410d0ea54efb7b5a489b72cb79 /sshpty.c | |
parent | 9b4139742f146f6048af147da136e8d71c52605e (diff) | |
download | openssh-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); } } |