[afp] - fixed writing of files
authorMemphiz <memphis@machzwo.de>
Fri, 7 Oct 2011 16:51:40 +0000 (18:51 +0200)
committerMemphiz <memphis@machzwo.de>
Fri, 7 Oct 2011 16:54:43 +0000 (18:54 +0200)
xbmc/filesystem/FileAFP.cpp

index 89db63f..f84ecec 100644 (file)
@@ -645,7 +645,7 @@ bool CFileAFP::OpenForWrite(const CURL& url, bool bOverWrite)
   if (bOverWrite)
   {
     CLog::Log(LOGWARNING, "FileAFP::OpenForWrite() called with overwriting enabled! - %s", strPath.c_str());
-    ret = gAfpConnection.GetImpl()->afp_wrap_creat(gAfpConnection.GetVolume(), strPath.c_str(), 0);
+    ret = gAfpConnection.GetImpl()->afp_wrap_creat(gAfpConnection.GetVolume(), strPath.c_str(), S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
   }
 
   ret = gAfpConnection.GetImpl()->afp_wrap_open(gAfpConnection.GetVolume(), strPath.c_str(), O_RDWR, &m_pFp);