diff options
author | 2002-06-24 17:57:20 +0000 | |
---|---|---|
committer | 2002-06-24 17:57:20 +0000 | |
commit | 8c5d08d54f27c4d4477ba202177b7f29a68a027d (patch) | |
tree | dfe11bbd12d6cb963293a07f0c87ed4ccf658f7b /usr.bin/ssh/sshpty.c | |
parent | KERN_POOL_POOL, not KERN_POOL_NPOOLS --- I wonder how this was not (diff) | |
download | wireguard-openbsd-8c5d08d54f27c4d4477ba202177b7f29a68a027d.tar.xz wireguard-openbsd-8c5d08d54f27c4d4477ba202177b7f29a68a027d.zip |
explicit (u_int) for uid and gid
Diffstat (limited to 'usr.bin/ssh/sshpty.c')
-rw-r--r-- | usr.bin/ssh/sshpty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshpty.c b/usr.bin/ssh/sshpty.c index 3350764f226..8450f7719a8 100644 --- a/usr.bin/ssh/sshpty.c +++ b/usr.bin/ssh/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 $"); #include <util.h> #include "sshpty.h" @@ -276,11 +276,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)); } } |