summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/smb.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/smb.php b/apps/files_external/lib/smb.php
index 3ef13b633a9..b1d355323d9 100644
--- a/apps/files_external/lib/smb.php
+++ b/apps/files_external/lib/smb.php
@@ -140,7 +140,7 @@ class SMB extends \OC\Files\Storage\StreamWrapper{
*/
public static function checkDependencies() {
if (function_exists('shell_exec')) {
- $output = shell_exec('which smbclient');
+ $output=shell_exec('command -v smbclient 2> /dev/null');
if (!empty($output)) {
return true;
}