Merge branch '3406_sftp_error_31'
commit79b6a772fe3677f5f8752f317a689570db871359
authorAndrew Borodin <aborodin@vmail.ru>
Thu, 28 Dec 2017 07:25:24 +0000 (28 10:25 +0300)
committerAndrew Borodin <aborodin@vmail.ru>
Thu, 28 Dec 2017 07:25:24 +0000 (28 10:25 +0300)
tree7492e9ab82fd725668056dc4b115c21a0d1c8ae5
parent218dcea54320eb0d4ed029dbc0ac661eb4f8fe62
parent322d0804c7dad84db2ccb20cd8dc10b1c897e836
Merge branch '3406_sftp_error_31'

* 3406_sftp_error_31:
  (panel_operate_init_totals): fix directory size calculation.
  (panel_operate_init_totals): change the 'source' argument type...
  sftpfs: handle file operation errors.
  (sftpfs_close_file): return actual result of sftp file close operation.
  (sftpfs_waitsocket): refactor and use it for file and directory operations.
  Clarify usage of sftpfs_internal_stat() return value.
  sftpfs: refactoring: move initialization of sftp stat operations to separate function.
  sftpfs: refactoring: move initialization of sftp operation to separate function.
  (sftpfs_waitsocket): handle socket errors.
  sftpfs: refactoring: move handling of socket errors to separate function.
  (sftpfs_fstat): use sftpfs_attr_to_stat().
  sftpfs: refactoring: move obtaining of stat info from sftp attributes to separate function.
  sftpfs: refactoring: move error check to separate function.
  Fix sftp error 31 (proto 4 and 2)
  sftp handle LIBSSH2_FX_PERMISSION_DENIED as EACCES.
  Ticket #3406: sftpfs: fix -31 SFTP Protocol Error when transferring file via SFTP Link.