diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-23 21:23:20 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-23 21:23:20 +0000 |
commit | 5c3855210ef20be5931d4b58f641d71bc3b203e8 (patch) | |
tree | de100fe07cedd57448d9d4bd5bd23fa602c408b7 /sshpty.c | |
parent | 836f0e9d9a847ad0510ff50b2bedc58e295e0913 (diff) |
- deraadt@cvs.openbsd.org 2002/06/23 03:30:58
[scard.c ssh-dss.c ssh-rsa.c sshconnect.c sshconnect2.c sshd.c sshlogin.c
sshpty.c]
various KNF and %d for unsigned
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: sshpty.c,v 1.4 2001/12/19 07:18:56 deraadt Exp $"); | 15 | RCSID("$OpenBSD: sshpty.c,v 1.5 2002/06/23 03:30:58 deraadt Exp $"); |
16 | 16 | ||
17 | #ifdef HAVE_UTIL_H | 17 | #ifdef HAVE_UTIL_H |
18 | # include <util.h> | 18 | # include <util.h> |
@@ -394,11 +394,11 @@ pty_setowner(struct passwd *pw, const char *ttyname) | |||
394 | if (chown(ttyname, pw->pw_uid, gid) < 0) { | 394 | if (chown(ttyname, pw->pw_uid, gid) < 0) { |
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, %d, %d) failed: %.100s", | 397 | error("chown(%.100s, %u, %u) failed: %.100s", |
398 | ttyname, pw->pw_uid, gid, | 398 | ttyname, pw->pw_uid, gid, |
399 | strerror(errno)); | 399 | strerror(errno)); |
400 | else | 400 | else |
401 | fatal("chown(%.100s, %d, %d) failed: %.100s", | 401 | fatal("chown(%.100s, %u, %u) failed: %.100s", |
402 | ttyname, pw->pw_uid, gid, | 402 | ttyname, pw->pw_uid, gid, |
403 | strerror(errno)); | 403 | strerror(errno)); |
404 | } | 404 | } |