aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjenkins4kodi <jenkins4kodi@users.noreply.github.com>2017-01-15 01:45:55 +0100
committerGitHub <noreply@github.com>2017-01-15 01:45:55 +0100
commita71741f4868524a48ea599cdcae6de5703821d07 (patch)
treec4b668df2a90b6cc17c52e515b1576ca21c08585
parent1d0624147cc75fa98791c575e0c8d03182119aee (diff)
parent628c7e83ff018b7e0d796695e4f086646a2d2957 (diff)
Merge pull request #11446 from fedux/smb-rename
-rw-r--r--xbmc/utils/FileOperationJob.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/xbmc/utils/FileOperationJob.cpp b/xbmc/utils/FileOperationJob.cpp
index f2527626c9..36a8c0d876 100644
--- a/xbmc/utils/FileOperationJob.cpp
+++ b/xbmc/utils/FileOperationJob.cpp
@@ -316,6 +316,11 @@ inline bool CFileOperationJob::CanBeRenamed(const std::string &strFileA, const s
#else
if (URIUtils::IsHD(strFileA) && URIUtils::IsHD(strFileB))
return true;
+ else if (URIUtils::IsSmb(strFileA) && URIUtils::IsSmb(strFileB)) {
+ CURL smbFileA(strFileA), smbFileB(strFileB);
+ return smbFileA.GetHostName() == smbFileB.GetHostName() &&
+ smbFileA.GetShareName() == smbFileB.GetShareName();
+ }
#endif
return false;
}