diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php index 80b44a4cbd..125e0a6dd2 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']; } }