From fc52327d2ce4d419e06f372e2eb910523a60aa89 Mon Sep 17 00:00:00 2001
From: Robin McCorkell <rmccorkell@owncloud.com>
Date: Wed, 6 Jan 2016 11:51:56 +0000
Subject: Check libsmbclient-php as well as smbclient binary

---
 apps/files_external/lib/smb.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'apps/files_external/lib')

diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php
index 80b44a4cbdf..125e0a6dd2c 100644
--- a/apps/files_external/lib/smb.php
+++ b/apps/files_external/lib/smb.php
@@ -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'];
 	}
 }
-- 
cgit v1.2.3