aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJames Housley <jim@thehousleys.net>2007-06-14 13:22:00 +0000
committerJames Housley <jim@thehousleys.net>2007-06-14 13:22:00 +0000
commitdb5d4bd81125d54007fc9f3106b51d964bd66db3 (patch)
tree87042e9cc0347e5b89604a51ad1a422f867beb0e /lib
parentdc3b3c69161963ac38c2b1d4a198acf2d9b66e12 (diff)
Remove duplicate code that was left in as part of 1.35. This code
only affected sftp_sendquote() for the "chgrp/chmod/chown" commands. This also fixed failure of test 614 on a system that previously failed.
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index bc7d3eb41..4048744b4 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -2044,15 +2044,6 @@ static CURLcode sftp_sendquote(struct connectdata *conn,
return err;
}
memset(&attrs, 0, sizeof(LIBSSH2_SFTP_ATTRIBUTES));
- if (libssh2_sftp_stat(sftp_session,
- path2, &attrs) != 0) { /* get those attributes */
- err = libssh2_sftp_last_error(sftp_session);
- free(path1);
- free(path2);
- failf(data, "Attempt to get SFTP stats failed: %s",
- sftp_libssh2_strerror(err));
- return CURLE_FTP_QUOTE_ERROR;
- }
#if (LIBSSH2_APINO >= 200706012030)
while ((ret = libssh2_sftp_stat(sftp_session,
path2, &attrs)) ==