summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2008-06-09 13:02:40 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2008-06-09 13:02:40 +0000
commita6dacdd8ccd75d6d61f3f3a54225c2e6836c0c01 (patch)
treee7766e3db50b5698dcab94427fbe5daa3d7219b1 /usr.bin
parent1863b6978329ca5f595ba328a4ca50d0b81db3cd (diff)
Extend 32bit -> 64bit values for statvfs extension missed in previous commit.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sftp-server.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ssh/sftp-server.c b/usr.bin/ssh/sftp-server.c
index 85ef0e13f78..cfab230cb8b 100644
--- a/usr.bin/ssh/sftp-server.c
+++ b/usr.bin/ssh/sftp-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-server.c,v 1.82 2008/06/08 17:04:41 dtucker Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.83 2008/06/09 13:02:39 dtucker Exp $ */
/*
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
*
@@ -487,8 +487,8 @@ send_statvfs(u_int32_t id, struct statvfs *st)
buffer_init(&msg);
buffer_put_char(&msg, SSH2_FXP_EXTENDED_REPLY);
buffer_put_int(&msg, id);
- buffer_put_int(&msg, st->f_bsize);
- buffer_put_int(&msg, st->f_frsize);
+ buffer_put_int64(&msg, st->f_bsize);
+ buffer_put_int64(&msg, st->f_frsize);
buffer_put_int64(&msg, st->f_blocks);
buffer_put_int64(&msg, st->f_bfree);
buffer_put_int64(&msg, st->f_bavail);
@@ -496,8 +496,8 @@ send_statvfs(u_int32_t id, struct statvfs *st)
buffer_put_int64(&msg, st->f_ffree);
buffer_put_int64(&msg, st->f_favail);
buffer_put_int64(&msg, st->f_fsid);
- buffer_put_int(&msg, flag);
- buffer_put_int(&msg, st->f_namemax);
+ buffer_put_int64(&msg, flag);
+ buffer_put_int64(&msg, st->f_namemax);
send_msg(&msg);
buffer_free(&msg);
}