Merge pull request #21481 from owncloud/ext-smb-dependencies

Check libsmbclient-php as well as smbclient binary
This commit is contained in:
Thomas Müller 2016-01-07 16:19:20 +01:00
commit 629061d00a
1 changed files with 4 additions and 2 deletions

View 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'];
}
}