Deleted Added
full compact
sftp-client.c (261320) sftp-client.c (263712)
1/* $OpenBSD: sftp-client.c,v 1.113 2014/01/17 00:21:06 djm Exp $ */
1/* $OpenBSD: sftp-client.c,v 1.114 2014/01/31 16:39:19 tedu Exp $ */
2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 295 unchanged lines hidden (view full) ---

305 error("Couldn't statvfs: %s", fx2txt(status));
306 buffer_free(&msg);
307 return -1;
308 } else if (type != SSH2_FXP_EXTENDED_REPLY) {
309 fatal("Expected SSH2_FXP_EXTENDED_REPLY(%u) packet, got %u",
310 SSH2_FXP_EXTENDED_REPLY, type);
311 }
312
2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 295 unchanged lines hidden (view full) ---

305 error("Couldn't statvfs: %s", fx2txt(status));
306 buffer_free(&msg);
307 return -1;
308 } else if (type != SSH2_FXP_EXTENDED_REPLY) {
309 fatal("Expected SSH2_FXP_EXTENDED_REPLY(%u) packet, got %u",
310 SSH2_FXP_EXTENDED_REPLY, type);
311 }
312
313 bzero(st, sizeof(*st));
313 memset(st, 0, sizeof(*st));
314 st->f_bsize = buffer_get_int64(&msg);
315 st->f_frsize = buffer_get_int64(&msg);
316 st->f_blocks = buffer_get_int64(&msg);
317 st->f_bfree = buffer_get_int64(&msg);
318 st->f_bavail = buffer_get_int64(&msg);
319 st->f_files = buffer_get_int64(&msg);
320 st->f_ffree = buffer_get_int64(&msg);
321 st->f_favail = buffer_get_int64(&msg);

--- 1414 unchanged lines hidden ---
314 st->f_bsize = buffer_get_int64(&msg);
315 st->f_frsize = buffer_get_int64(&msg);
316 st->f_blocks = buffer_get_int64(&msg);
317 st->f_bfree = buffer_get_int64(&msg);
318 st->f_bavail = buffer_get_int64(&msg);
319 st->f_files = buffer_get_int64(&msg);
320 st->f_ffree = buffer_get_int64(&msg);
321 st->f_favail = buffer_get_int64(&msg);

--- 1414 unchanged lines hidden ---