]> source.dussan.org Git - nextcloud-server.git/commitdiff
use command -v to detect if smbclient exists
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 3 Apr 2014 15:09:40 +0000 (17:09 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 3 Apr 2014 15:09:40 +0000 (17:09 +0200)
apps/files_external/lib/smb.php

index 3ef13b633a9ea002329d0e046a65d35402738acb..b1d355323d9a078df9948f94367c0dc91ad6abb0 100644 (file)
@@ -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;
                        }