summaryrefslogtreecommitdiffstats
path: root/sftp-server.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2008-06-09 15:06:55 +0200
committerDarren Tucker <dtucker@zip.com.au>2008-06-09 15:06:55 +0200
commit3463acaebfe90c10d22c0baaff556559bfd66fd6 (patch)
treeed4b829c632ba241fb21ad2e7a539ee4494d790a /sftp-server.c
parent - dtucker@cvs.openbsd.org 2008/06/08 20:15:29 (diff)
downloadopenssh-3463acaebfe90c10d22c0baaff556559bfd66fd6.tar.xz
openssh-3463acaebfe90c10d22c0baaff556559bfd66fd6.zip
- dtucker@cvs.openbsd.org 2008/06/09 13:02:39
Extend 32bit -> 64bit values for statvfs extension missed in previous commit.
Diffstat (limited to '')
-rw-r--r--sftp-server.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sftp-server.c b/sftp-server.c
index fbf620989..4022b93b6 100644
--- a/sftp-server.c
+++ b/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.
*
@@ -496,8 +496,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);
@@ -505,8 +505,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, FSID_TO_ULONG(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);
}