summaryrefslogtreecommitdiffstats
path: root/sftp.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2008-06-08 19:32:29 +0200
committerDarren Tucker <dtucker@zip.com.au>2008-06-08 19:32:29 +0200
commit598eaa6c0c36c3169963c7e6505d53b4073590f5 (patch)
tree52872f9bfe82fd5a3e1b1a059bd063351bfbadd7 /sftp.c
parent - djm@cvs.openbsd.org 2008/06/07 21:52:46 (diff)
downloadopenssh-598eaa6c0c36c3169963c7e6505d53b4073590f5.tar.xz
openssh-598eaa6c0c36c3169963c7e6505d53b4073590f5.zip
- (dtucker) [configure.ac defines.h sftp-client.c sftp-server.c sftp.c
openbsd-compat/Makefile.in openbsd-compat/openbsd-compat.h openbsd-compat/bsd-statvfs.{c,h}] Add a null implementation of statvfs and fstatvfs and remove #defines around statvfs code. ok djm@
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sftp.c b/sftp.c
index c5c3b1443..50ac03798 100644
--- a/sftp.c
+++ b/sftp.c
@@ -842,7 +842,6 @@ do_globbed_ls(struct sftp_conn *conn, char *path, char *strip_path,
static int
do_df(struct sftp_conn *conn, char *path, int hflag, int iflag)
{
-#ifdef USE_STATVFS
struct statvfs st;
char s_used[FMT_SCALED_STRSIZE];
char s_avail[FMT_SCALED_STRSIZE];
@@ -888,10 +887,6 @@ do_df(struct sftp_conn *conn, char *path, int hflag, int iflag)
st.f_blocks));
}
return 0;
-#else
- error("client does not support statvfs extension");
- return -1;
-#endif
}
/*