diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sftp-server.c | 6 | ||||
-rw-r--r-- | sshpty.c | 6 |
3 files changed, 10 insertions, 7 deletions
@@ -16,6 +16,9 @@ | |||
16 | - itojun@cvs.openbsd.org 2002/06/24 15:49:22 | 16 | - itojun@cvs.openbsd.org 2002/06/24 15:49:22 |
17 | [msg.c] | 17 | [msg.c] |
18 | printf type pedant | 18 | printf type pedant |
19 | - deraadt@cvs.openbsd.org 2002/06/24 17:57:20 | ||
20 | [sftp-server.c sshpty.c] | ||
21 | explicit (u_int) for uid and gid | ||
19 | 22 | ||
20 | 20020625 | 23 | 20020625 |
21 | - (stevesk) [INSTALL acconfig.h configure.ac defines.h] remove --with-rsh | 24 | - (stevesk) [INSTALL acconfig.h configure.ac defines.h] remove --with-rsh |
@@ -1115,4 +1118,4 @@ | |||
1115 | - (stevesk) entropy.c: typo in debug message | 1118 | - (stevesk) entropy.c: typo in debug message |
1116 | - (djm) ssh-keygen -i needs seeded RNG; report from markus@ | 1119 | - (djm) ssh-keygen -i needs seeded RNG; report from markus@ |
1117 | 1120 | ||
1118 | $Id: ChangeLog,v 1.2278 2002/06/25 23:20:18 mouring Exp $ | 1121 | $Id: ChangeLog,v 1.2279 2002/06/25 23:21:41 mouring Exp $ |
diff --git a/sftp-server.c b/sftp-server.c index c3eee3802..a5c325561 100644 --- a/sftp-server.c +++ b/sftp-server.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | #include "includes.h" | 24 | #include "includes.h" |
25 | RCSID("$OpenBSD: sftp-server.c,v 1.36 2002/06/23 09:30:14 deraadt Exp $"); | 25 | RCSID("$OpenBSD: sftp-server.c,v 1.37 2002/06/24 17:57:20 deraadt Exp $"); |
26 | 26 | ||
27 | #include "buffer.h" | 27 | #include "buffer.h" |
28 | #include "bufaux.h" | 28 | #include "bufaux.h" |
@@ -712,13 +712,13 @@ ls_file(char *name, struct stat *st) | |||
712 | if ((pw = getpwuid(st->st_uid)) != NULL) { | 712 | if ((pw = getpwuid(st->st_uid)) != NULL) { |
713 | user = pw->pw_name; | 713 | user = pw->pw_name; |
714 | } else { | 714 | } else { |
715 | snprintf(ubuf, sizeof ubuf, "%u", st->st_uid); | 715 | snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid); |
716 | user = ubuf; | 716 | user = ubuf; |
717 | } | 717 | } |
718 | if ((gr = getgrgid(st->st_gid)) != NULL) { | 718 | if ((gr = getgrgid(st->st_gid)) != NULL) { |
719 | group = gr->gr_name; | 719 | group = gr->gr_name; |
720 | } else { | 720 | } else { |
721 | snprintf(gbuf, sizeof gbuf, "%u", st->st_gid); | 721 | snprintf(gbuf, sizeof gbuf, "%u", (u_int)st->st_gid); |
722 | group = gbuf; | 722 | group = gbuf; |
723 | } | 723 | } |
724 | if (ltime != NULL) { | 724 | if (ltime != NULL) { |
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: sshpty.c,v 1.6 2002/06/23 21:06:13 deraadt Exp $"); | 15 | RCSID("$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 | } |