Blame SOURCES/0002-sftp-statvfs-Along-error-path-reset-the-correct-stat.patch
|
|
9bf74a |
From a12f3ffab579b514eeb7fdfaca0ade271961cdb4 Mon Sep 17 00:00:00 2001
|
|
|
9bf74a |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
9bf74a |
Date: Mon, 8 Apr 2013 17:30:10 +0100
|
|
|
9bf74a |
Subject: [PATCH 2/3] sftp: statvfs: Along error path, reset the correct
|
|
|
9bf74a |
'state' variable.
|
|
|
9bf74a |
|
|
|
9bf74a |
---
|
|
|
9bf74a |
src/sftp.c | 2 +-
|
|
|
9bf74a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9bf74a |
|
|
|
9bf74a |
diff --git a/src/sftp.c b/src/sftp.c
|
|
|
9bf74a |
index 3760025..65fa77a 100644
|
|
|
9bf74a |
--- a/src/sftp.c
|
|
|
9bf74a |
+++ b/src/sftp.c
|
|
|
9bf74a |
@@ -2752,7 +2752,7 @@ static int sftp_statvfs(LIBSSH2_SFTP *sftp, const char *path,
|
|
|
9bf74a |
"Error waiting for FXP EXTENDED REPLY");
|
|
|
9bf74a |
} else if (data_len < 93) {
|
|
|
9bf74a |
LIBSSH2_FREE(session, data);
|
|
|
9bf74a |
- sftp->fstatvfs_state = libssh2_NB_state_idle;
|
|
|
9bf74a |
+ sftp->statvfs_state = libssh2_NB_state_idle;
|
|
|
9bf74a |
return _libssh2_error(session, LIBSSH2_ERROR_SFTP_PROTOCOL,
|
|
|
9bf74a |
"SFTP Protocol Error: short response");
|
|
|
9bf74a |
}
|
|
|
9bf74a |
--
|
|
|
9bf74a |
1.8.1.4
|
|
|
9bf74a |
|