From 35d6051e9df9e3bc0f82e0be45658d5e093234b4 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Thu, 7 Jul 2011 19:26:25 -0400 Subject: [PATCH] Fix bug in mkdir(), was passing the wrong path --- apps/files_sharing/sharedstorage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index 5f343331cde..992ccc8e597 100644 --- a/apps/files_sharing/sharedstorage.php +++ b/apps/files_sharing/sharedstorage.php @@ -59,7 +59,8 @@ class OC_FILESTORAGE_SHARED extends OC_FILESTORAGE { } else { $source = $this->getSource($path); if ($source) { - if (OC_SHARE::isWriteable($path)) { + $target = OC_FILESYSTEM::getStorageMountPoint($this).$path; + if (OC_SHARE::isWriteable($target)) { $storage = OC_FILESYSTEM::getStorage($source); return $storage->mkdir($this->getInternalPath($source)); }