]> source.dussan.org Git - nextcloud-server.git/commitdiff
update icewind/smb to 3.2.5 21343/head
authorRobin Appelman <robin@icewind.nl>
Wed, 27 May 2020 15:44:54 +0000 (17:44 +0200)
committerRobin Appelman <robin@icewind.nl>
Tue, 9 Jun 2020 12:55:09 +0000 (14:55 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_external/3rdparty/composer.json
apps/files_external/3rdparty/composer.lock
apps/files_external/3rdparty/composer/installed.json
apps/files_external/3rdparty/icewind/smb/src/IShare.php
apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php
apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php
apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php

index 62eb72cb6b10142159b52e6d570c74444bb429fe..3e973940e1c748e07ef6878d30dc8f7033d6598f 100644 (file)
@@ -9,6 +9,6 @@
        },
        "require": {
                "icewind/streams": "0.7.1",
-               "icewind/smb": "^3.2.4"
+               "icewind/smb": "^3.2.5"
        }
 }
index 19231a5da82fd49c912bce77c44c6caddc44e43d..a773f31b43f7d515764438a9f53aee711d43c0ad 100644 (file)
@@ -4,20 +4,20 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "ab745d51b0d201a3c3d3f78e5cb865c1",
+    "content-hash": "ceae723174e6d71cdd0c12ee6cb758a4",
     "packages": [
         {
             "name": "icewind/smb",
-            "version": "v3.2.4",
+            "version": "v3.2.5",
             "source": {
                 "type": "git",
                 "url": "https://github.com/icewind1991/SMB.git",
-                "reference": "999d6687ca9d4ac2600185c935b45206e47e604a"
+                "reference": "80921d69f5e47157c825f0bdac6c838fe0b901b2"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/icewind1991/SMB/zipball/999d6687ca9d4ac2600185c935b45206e47e604a",
-                "reference": "999d6687ca9d4ac2600185c935b45206e47e604a",
+                "url": "https://api.github.com/repos/icewind1991/SMB/zipball/80921d69f5e47157c825f0bdac6c838fe0b901b2",
+                "reference": "80921d69f5e47157c825f0bdac6c838fe0b901b2",
                 "shasum": ""
             },
             "require": {
@@ -46,7 +46,7 @@
                 }
             ],
             "description": "php wrapper for smbclient and libsmbclient-php",
-            "time": "2020-05-11T14:12:35+00:00"
+            "time": "2020-05-27T13:56:04+00:00"
         },
         {
             "name": "icewind/streams",
index 388a48e5560a1480243363fbf58dccacb2fd626f..35023ec730cdf50e6fadfdd23c31fb350e5f75ff 100644 (file)
@@ -1,17 +1,17 @@
 [
     {
         "name": "icewind/smb",
-        "version": "v3.2.4",
-        "version_normalized": "3.2.4.0",
+        "version": "v3.2.5",
+        "version_normalized": "3.2.5.0",
         "source": {
             "type": "git",
             "url": "https://github.com/icewind1991/SMB.git",
-            "reference": "999d6687ca9d4ac2600185c935b45206e47e604a"
+            "reference": "80921d69f5e47157c825f0bdac6c838fe0b901b2"
         },
         "dist": {
             "type": "zip",
-            "url": "https://api.github.com/repos/icewind1991/SMB/zipball/999d6687ca9d4ac2600185c935b45206e47e604a",
-            "reference": "999d6687ca9d4ac2600185c935b45206e47e604a",
+            "url": "https://api.github.com/repos/icewind1991/SMB/zipball/80921d69f5e47157c825f0bdac6c838fe0b901b2",
+            "reference": "80921d69f5e47157c825f0bdac6c838fe0b901b2",
             "shasum": ""
         },
         "require": {
@@ -22,7 +22,7 @@
             "friendsofphp/php-cs-fixer": "^2.13",
             "phpunit/phpunit": "^7.0"
         },
-        "time": "2020-05-11T14:12:35+00:00",
+        "time": "2020-05-27T13:56:04+00:00",
         "type": "library",
         "installation-source": "dist",
         "autoload": {
index 92a12b46f2b9eac71b09dd36e15777d19255db2c..d33d10bb3fb46b131654a705aafa7e3b23efd2b0 100644 (file)
@@ -150,4 +150,11 @@ interface IShare {
         * @return INotifyHandler
         */
        public function notify($path);
+
+       /**
+        * Get the IServer instance for this share
+        *
+        * @return IServer
+        */
+       public function getServer(): IServer;
 }
index 093cbb3b5dcc7f23cd54db853e0e564427cf3501..5b987253ada8b7a60f74054b0048a78d86d46332 100644 (file)
@@ -141,7 +141,7 @@ class NativeFileInfo implements IFileInfo {
        public function isHidden() {
                $mode = $this->getMode();
                if ($mode > 0x80) {
-                       return $this->name[0] === '.';
+                       return strlen($this->name) > 0 && $this->name[0] === '.';
                } else {
                        return (bool)($mode & IFileInfo::MODE_HIDDEN);
                }
index e829be28bf06186c243f718d976f9d506cf055f6..95ee3f489b9b950dce2d91e01b2edf217f79a9c6 100644 (file)
@@ -350,6 +350,10 @@ class NativeShare extends AbstractShare {
                return $share->notify($path);
        }
 
+       public function getServer(): IServer {
+               return $this->server;
+       }
+
        public function __destruct() {
                unset($this->state);
        }
index e0df1f60326689783cd469bd322ec973678ac8e5..ea386a87bfc29e49e28cb9da350d0316d3ead910 100644 (file)
@@ -552,6 +552,10 @@ class Share extends AbstractShare {
                return $acls;
        }
 
+       public function getServer(): IServer {
+               return $this->server;
+       }
+
        public function __destruct() {
                unset($this->connection);
        }