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)
- 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 89447fbd1..64ac4e599 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: sshpty.c,v 1.6 2002/06/23 21:06:13 deraadt Exp $"); 15RCSID("$OpenBSD: sshpty.c,v 1.7 2002/06/24 17:57:20 deraadt Exp $");
16 16
17#ifdef HAVE_UTIL_H 17#ifdef HAVE_UTIL_H
18# include <util.h> 18# include <util.h>
@@ -395,11 +395,11 @@ pty_setowner(struct passwd *pw, const char *ttyname)
395 if (errno == EROFS && 395 if (errno == EROFS &&
396 (st.st_uid == pw->pw_uid || st.st_uid == 0)) 396 (st.st_uid == pw->pw_uid || st.st_uid == 0))
397 error("chown(%.100s, %u, %u) failed: %.100s", 397 error("chown(%.100s, %u, %u) failed: %.100s",
398 ttyname, pw->pw_uid, gid, 398 ttyname, (u_int)pw->pw_uid, (u_int)gid,
399 strerror(errno)); 399 strerror(errno));
400 else 400 else
401 fatal("chown(%.100s, %u, %u) failed: %.100s", 401 fatal("chown(%.100s, %u, %u) failed: %.100s",
402 ttyname, pw->pw_uid, gid, 402 ttyname, (u_int)pw->pw_uid, (u_int)gid,
403 strerror(errno)); 403 strerror(errno));
404 } 404 }
405 } 405 }