diff options
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 | } |