summaryrefslogtreecommitdiff
path: root/sftp-server.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2008-06-08 12:57:08 +1000
committerDarren Tucker <dtucker@zip.com.au>2008-06-08 12:57:08 +1000
commit294b84183265a9be32971fce856e578160e1a825 (patch)
tree5762b34d89bc557539de5b96a7ed8c1257292d69 /sftp-server.c
parentdf189fb2792184d038650437b752e23b1d4b71cf (diff)
- djm@cvs.openbsd.org 2008/06/07 21:52:46
[sftp-server.c sftp-client.c] statvfs member fsid needs to be wider, increase it to 64 bits and crank extension revision number to 2; prodded and ok dtucker@
Diffstat (limited to 'sftp-server.c')
-rw-r--r--sftp-server.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sftp-server.c b/sftp-server.c
index a9cc9408..2c25df9d 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-server.c,v 1.80 2008/05/18 21:29:05 djm Exp $ */
+/* $OpenBSD: sftp-server.c,v 1.81 2008/06/07 21:52:46 djm Exp $ */
/*
* Copyright (c) 2000-2004 Markus Friedl. All rights reserved.
*
@@ -502,7 +502,7 @@ send_statvfs(u_int32_t id, struct statvfs *st)
buffer_put_int64(&msg, st->f_files);
buffer_put_int64(&msg, st->f_ffree);
buffer_put_int64(&msg, st->f_favail);
- buffer_put_int(&msg, st->f_fsid);
+ buffer_put_int64(&msg, st->f_fsid);
buffer_put_int(&msg, flag);
buffer_put_int(&msg, st->f_namemax);
send_msg(&msg);
@@ -528,10 +528,10 @@ process_init(void)
#ifdef USEE_STATVFS
/* statvfs extension */
buffer_put_cstring(&msg, "statvfs@openssh.com");
- buffer_put_cstring(&msg, "1"); /* version */
+ buffer_put_cstring(&msg, "2"); /* version */
/* fstatvfs extension */
buffer_put_cstring(&msg, "fstatvfs@openssh.com");
- buffer_put_cstring(&msg, "1"); /* version */
+ buffer_put_cstring(&msg, "2"); /* version */
#endif
send_msg(&msg);
buffer_free(&msg);