From: Tsu Jan Date: Mon, 8 Apr 2019 02:43:09 +0000 (+0430) Subject: Fixed SMB recursive copy X-Git-Tag: archive/raspbian/0.14.1-10+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=44cbcf49d75dff0fd7abb1d073255509e0846965;p=libfm-qt.git Fixed SMB recursive copy Fixes https://github.com/lxqt/libfm-qt/issues/385 by trying to set dir permissions only once and ignoring possible errors (that happen with SMB and, maybe, other protocols). Gbp-Pq: Name fix-smb-recursive-copy.patch --- diff --git a/src/core/filetransferjob.cpp b/src/core/filetransferjob.cpp index 4039c58..6b44576 100644 --- a/src/core/filetransferjob.cpp +++ b/src/core/filetransferjob.cpp @@ -279,16 +279,17 @@ bool FileTransferJob::makeDir(const FilePath& srcPath, GFileInfoPtr srcInfo, Fil mode, G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, cancellable().get(), &err); if(!chmod_done) { - ErrorAction act = emitError(err, ErrorSeverity::MODERATE); + /* NOTE: Some filesystems may not support this. So, ignore errors for now. */ + break; + /*ErrorAction act = emitError(err, ErrorSeverity::MODERATE); if(act != ErrorAction::RETRY) { break; - } - /* FIXME: some filesystems may not support this. */ + }*/ } } while(!chmod_done && !isCancelled()); } } - return mkdir_done && chmod_done; + return mkdir_done/* && chmod_done*/; } bool FileTransferJob::handleError(GErrorPtr &err, const FilePath &srcPath, const GFileInfoPtr &srcInfo, FilePath &destPath, int& flags) {