Skip to content
Browse files

- get rid of the EEXIST warnings - this time i mean it... - nfs uses …

…-EEXIST - smb uses errno
  • Loading branch information...
1 parent d39da80 commit 9666a5218cf43400cf99be60a5df88cce39fdb78 @Memphiz Memphiz committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 xbmc/filesystem/NFSDirectory.cpp
  2. +1 −1 xbmc/filesystem/SMBDirectory.cpp
View
2 xbmc/filesystem/NFSDirectory.cpp
@@ -217,7 +217,7 @@ bool CNFSDirectory::Create(const char* strPath)
ret = gNfsConnection.GetImpl()->nfs_mkdir(gNfsConnection.GetNfsContext(), folderName.c_str());
- success = (ret == 0 || EEXIST == ret);
+ success = (ret == 0 || -EEXIST == ret);
if(!success)
CLog::Log(LOGERROR, "NFS: Failed to create(%s) %s\n", folderName.c_str(), gNfsConnection.GetImpl()->nfs_get_error(gNfsConnection.GetNfsContext()));
return success;
View
2 xbmc/filesystem/SMBDirectory.cpp
@@ -357,7 +357,7 @@ bool CSMBDirectory::Create(const char* strPath)
CStdString strFileName = smb.URLEncode(url);
int result = smbc_mkdir(strFileName.c_str(), 0);
- success = (result == 0 || EEXIST == result);
+ success = (result == 0 || EEXIST == errno);
if(!success)
#ifndef _LINUX
CLog::Log(LOGERROR, "%s - Error( %s )", __FUNCTION__, get_friendly_nt_error_msg(smb.ConvertUnixToNT(errno)));

0 comments on commit 9666a52

Please sign in to comment.
Something went wrong with that request. Please try again.