]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check libsmbclient-php as well as smbclient binary
authorRobin McCorkell <rmccorkell@owncloud.com>
Wed, 6 Jan 2016 11:51:56 +0000 (11:51 +0000)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 7 Jan 2016 07:56:45 +0000 (08:56 +0100)
apps/files_external/lib/smb.php

index 80b44a4cbdf93a0296f97d430248ad6f1cbc38e6..125e0a6dd2c9640011477f8a8742ae69d8aee35c 100644 (file)
@@ -302,7 +302,9 @@ class SMB extends Common {
         * check if smbclient is installed
         */
        public static function checkDependencies() {
-               $smbClientExists = (bool)\OC_Helper::findBinaryPath('smbclient');
-               return $smbClientExists ? true : array('smbclient');
+               return (
+                       (bool)\OC_Helper::findBinaryPath('smbclient')
+                       || Server::NativeAvailable()
+               ) ? true : ['smbclient'];
        }
 }