]> source.dussan.org Git - nextcloud-server.git/commitdiff
make sure that home folders are mounted correctly before write/read keyfile
authorBjörn Schießle <schiessle@owncloud.com>
Mon, 25 Feb 2013 11:29:07 +0000 (12:29 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Mon, 25 Feb 2013 11:29:07 +0000 (12:29 +0100)
apps/files_encryption/lib/keymanager.php

index ec1fdd1fd55c07365efd9718c836365aaad2f7af..d35ad8f4d5e4bee48c5412bb48642bc5952dd22a 100755 (executable)
@@ -105,6 +105,7 @@ class Keymanager {
         */\r
        public static function setFileKey( \OC_FilesystemView $view, $path, $userId, $catfile ) {\r
                \r
+               \OC\Files\Filesystem::initMountPoints($userId);\r
                $basePath = '/' . $userId . '/files_encryption/keyfiles';\r
                \r
                $targetPath = self::keySetPreparation( $view, $path, $basePath, $userId );\r
@@ -134,6 +135,7 @@ class Keymanager {
         */\r
        public static function getFileKey( \OC_FilesystemView $view, $userId, $filePath ) {\r
                \r
+               \OC\Files\Filesystem::initMountPoints($userId);\r
                $filePath_f = ltrim( $filePath, '/' );\r
                \r
                $keyfilePath = '/' . $userId . '/files_encryption/keyfiles/' . $filePath_f . '.key';\r